!function (e, t) {
  if ("object" == typeof exports && "object" == typeof module) {
    module.exports = t()
  } else {
    if ("function" == typeof define && define.amd) {
      define([], t)
    } else {
      var i = t();
      for (var o in i) {
        ("object" == typeof exports ? exports : e)[o] = i[o]
      }
    }
  }
}(this, function () {
  return function (e) {
    function t(o) {
      if (i[o]) {
        return i[o].exports
      }
      var n = i[o] = {exports: {}, id: o, loaded: !1};
      return e[o].call(n.exports, n, n.exports, t), n.loaded = !0, n.exports
    }

    var i = {};
    return t.m = e, t.c = i, t.p = "//imgcache.qq.com/open/qcloud/video/vcplayer/", t(0)
  }([function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function r(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function s(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    function a(e, t) {
      if (d.IS_MOBILE ? (e.flash = !1, d.IS_X5TBS && e.x5_player ? b.mobile = ["flv", "m3u8", "mp4"] : d.IS_ENABLED_MSE && e.h5_flv && (b.mobile = ["flv", "m3u8", "mp4"])) : (e.flash = !!t.isFormat("rtmp") || e.flash, t.isFormat("flv") && void 0 == e.flash && (e.flash = !0), e.flash ? d.IS_ENABLED_FLASH || (e.flash = !1, d.IS_ENABLED_MSE ? e.h5_flv && (d.IS_SAFARI && A.compareVersion(d.SAFARI_VERSION, "10.1") > -1 || !d.IS_SAFARI) ? b.pc = ["flv", "m3u8", "mp4"] : b.pc = ["m3u8", "mp4"] : b.pc = ["mp4"]) : d.IS_ENABLED_MSE ? e.h5_flv && (d.IS_SAFARI && A.compareVersion(d.SAFARI_VERSION, "10.1") > -1 || !d.IS_SAFARI) ? b.pc = ["flv", "m3u8", "mp4"] : b.pc = ["m3u8", "mp4"] : d.IS_ENABLED_FLASH ? e.flash = !0 : b.pc = ["mp4"]), e.clarity) {
        var i = M.indexOf(e.clarity);
        M.splice(i, 1), M.unshift(e.clarity)
      }
    }

    function l(e) {
      var t = {
        urls: {
          m3u8: {od: e.m3u8 || "", hd: e.m3u8_hd || "", sd: e.m3u8_sd || ""},
          flv: {od: e.flv || "", hd: e.flv_hd || "", sd: e.flv_sd || ""},
          mp4: {od: e.mp4 || "", hd: e.mp4_hd || "", sd: e.mp4_sd || ""},
          rtmp: {od: e.rtmp || "", hd: e.rtmp_hd || "", sd: e.rtmp_sd || ""}
        }, isClarity: function (e) {
          var i = t.urls;
          return !!(i.m3u8[e] || i.flv[e] || i.mp4[e] || i.rtmp[e])
        }, isFormat: function (e) {
          var i = t.urls;
          return !!i[e].od || !!i[e].hd || !!i[e].sd
        }, hasUrl: function () {
          return this.isFormat("rtmp") || this.isFormat("flv") || this.isFormat("m3u8") || this.isFormat("mp4")
        }
      };
      t.definitions = [];
      for (var i = 0; i < M.length; i++) {
        t.isClarity(M[i]) && t.definitions.push(M[i])
      }
      a(e, t);
      var o = p(t);
      return o && (t.curUrl = o.url, t.curDef = o.definition, t.curFormat = o.format), t
    }

    function c(e, t, i) {
      var o = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : b, n = "", r = void 0;
      i = i || (d.IS_MOBILE ? o.mobile : o.pc);
      for (var s = 0; s < i.length; s++) {
        if (n = i[s], e[n][t]) {
          r = {definition: t, url: e[n][t], format: n};
          break
        }
      }
      return r
    }

    function u(e, t) {
      for (var i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : M, o = "", n = 0; n < i.length; n++) {
        if (o = i[n], e[t][o]) {
          return {definition: o, url: e[t][o]}
        }
      }
    }

    function p(e) {
      for (var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : b, i = void 0, o = "", n = e.urls, r = d.IS_MOBILE ? t.mobile : t.pc, s = 0; s < r.length; s++) {
        if (o = r[s], e.isFormat(o)) {
          i = u(n, o), i.format = o;
          break
        }
      }
      return i
    }

    t.__esModule = !0, t.TcPlayer = void 0;
    var h = i(1), d = o(h), f = i(2), y = (o(f), i(3)), A = o(y), v = i(4), m = o(v), g = i(5), w = m.MSG,
        b = {mobile: ["m3u8", "mp4"], pc: ["rtmp", "flv", "m3u8", "mp4"]}, M = ["od", "hd", "sd"];
    t.TcPlayer = function (e) {
      function t(i, o) {
        n(this, t);
        var s = l(o);
        M = ["od", "hd", "sd"];
        var a = {
          owner: i,
          videoSource: s,
          src: s.curUrl,
          autoplay: o.autoplay,
          live: o.live,
          flash: o.flash,
          flashUrl: o.flashUrl,
          poster: o.poster,
          width: o.width,
          height: o.height,
          volume: o.volume,
          listener: o.listener,
          wording: o.wording,
          controls: o.controls,
          clarity: o.clarity,
          clarityLabel: o.clarityLabel,
          showLoading: "boolean" != typeof o.showLoading || o.showLoading,
          pausePosterEnabled: void 0 === o.pausePosterEnabled || o.pausePosterEnabled,
          fullscreenEnabled: void 0 === o.fuScrnEnabled || o.fuScrnEnabled,
          systemFullscreen: o.systemFullscreen || !1,
          hls: o.hls || "0.12.4",
          h5_flv: o.h5_flv,
          x5_player: o.x5_player !== !1,
          x5_type: o.x5_type,
          x5_fullscreen: o.x5_fullscreen,
          x5_orientation: o.x5_orientation,
          x5_playsinline: o.x5_playsinline,
          preload: o.preload || "auto",
          hlsConfig: o.hlsConfig,
          flvConfig: o.flvConfig,
          // 表示加密的hls文件,设置该参数表示开启自定义加密
          encryptHls: o.encryptHls,
          // curRate表示当前倍速
          curRate: o.curRate ? o.curRate : 1,
          // rates表示倍速数组
          rates: o.rates ? o.rates : [2, 1.75, 1.5, 1.25, 1.0, 0.75, 0.5],
          // 防录屏文字,无则表示不出现防录屏文字
          appear_text: o.appear_text,
          // 防录屏文字出现是时长最大值
          appear_time: o.appear_time ? o.appear_time : 10,
          // 防录屏文字消失的时长最大值
          disappear_time: o.disappear_time ? o.disappear_time : 100,
          // 防录屏文字出现时的颜色
          appear_color: o.appear_color ? o.appear_color : ["#fff", "#000"],
          // 防录屏文字出现时字体的最小值
          appear_fontsize_min: o.appear_fontsize_min ? o.appear_fontsize_min : 12,
          // 防录屏文字出现时字体的最大值
          appear_fontsize_max: o.appear_fontsize_max ? o.appear_fontsize_max : 22,
          // 是否展示字幕
          subtitle_display: o.subtitle_display !== !1,
          // 字幕文件 srt类型
          subtitle_srt: o.subtitle_srt,
          // 字幕文件字体大小
          subtitle_fontsize: o.subtitle_fontsize ? o.subtitle_fontsize : "16px",
          // 全屏 -> 字幕文件字体大小
          subtitle_fullscreen_fontsize: o.subtitle_fullscreen_fontsize ? o.subtitle_fullscreen_fontsize : "32px",
        };
        return r(this, e.call(this, a))
      }

      return s(t, e), t.prototype._switchClarity = function (e) {
        e = e || "od";
        var t = this.currentTime(), i = this.options.videoSource, o = c(i.urls, e), n = this.playing();
        this.load(o.url), i.curUrl = o.url, i.curDef = o.definition, i.curFormat = o.format;
        var r = A.bind(this, function () {
          parseInt(this.duration() - t) > 0 && !this.options.live && this.currentTime(t), n && this.play(!0), m.unsub(w.MetaLoaded, "*", r, this)
        });
        m.sub(w.MetaLoaded, "*", r, this);
        // 切换清晰度后依旧保持原有的倍速
        document.querySelector("video").playbackRate = this.options.curRate;
      }, t.prototype._switchRate = function (e) {
        // 自定义的切换倍速的函数
        e = e || 1;
        this.options.curRate = e;
        document.querySelector("video").playbackRate = e;
      }, t.prototype.switchClarity = function (e) {
        this.claritySwitcher ? this.claritySwitcher.setClarity(e) : this._switchClarity(e)
      }, t.prototype.handleMsg = function (t) {
        e.prototype.handleMsg.call(this, t)
      }, t
    }(g.Player)
  }, function (e, t) {
    t.__esModule = !0;
    var i = window.navigator.userAgent, o = /AppleWebKit\/([\d.]+)/i.exec(i), n = o ? parseFloat(o.pop()) : null,
        r = t.IS_IPAD = /iPad/i.test(i), s = t.IS_IPHONE = /iPhone/i.test(i) && !r, a = t.IS_IPOD = /iPod/i.test(i),
        l = t.IS_IOS = s || r || a, c = (t.IOS_VERSION = function () {
          var e = i.match(/OS (\d+)_/i);
          if (e && e[1]) {
            return e[1]
          }
        }(), t.IS_MAC = /Mac/i.test(i), t.IS_ANDROID = /Android/i.test(i)), u = t.ANDROID_VERSION = function () {
          var e, t, o = i.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);
          return o ? (e = o[1] && parseFloat(o[1]), t = o[2] && parseFloat(o[2]), e && t ? parseFloat(o[1] + "." + o[2]) : e ? e : null) : null
        }(),
        p = (t.IS_OLD_ANDROID = c && /webkit/i.test(i) && u < 2.3, t.IS_NATIVE_ANDROID = c && u < 5 && n < 537, t.IS_FIREFOX = /Firefox/i.test(i), t.IS_EDGE = /Edge/i.test(i)),
        h = t.IS_CHROME = !p && /Chrome/i.test(i), d = t.IS_SAFARI = !p && !h && /Safari/i.test(i),
        f = (t.SAFARI_VERSION = function () {
          if (!d) {
            return null
          }
          var e = /version\/([\d.]+)/i, t = i.match(e);
          return t ? t[1] : void 0
        }(), t.IS_IE8 = /MSIE\s8\.0/.test(i), t.IS_IE9 = /MSIE\s9\.0/.test(i), t.IS_IE = /(msie\s|trident.*rv:)([\w.]+)/i.test(i)),
        y = (t.IE_VERSION = function () {
          var e = /(msie\s|trident.*rv:)([\w.]+)/i, t = i.match(e);
          return t ? t[2] : null
        }(), t.TOUCH_ENABLED = !!("ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch), t.BACKGROUND_SIZE_SUPPORTED = "backgroundSize" in document.createElement("video").style, t.HASVIDEO = !!document.createElement("video").canPlayType, t.IS_X5TBS = /TBS\/\d+/i.test(i)),
        A = (t.TBS_VERSION = function () {
          var e = i.match(/TBS\/(\d+)/i);
          if (e && e[1]) {
            return e[1]
          }
        }(), t.IS_MQQB = !y && /MQQBrowser\/\d+/i.test(i), t.IS_QQB = !y && / QQBrowser\/\d+/i.test(i), t.IS_WECHAT = /(micromessenger|webbrowser)/i.test(i), t.IS_MQQ = / QQ\/\d+/i.test(i), t.IS_MOBILE = c || l, t.IS_FILE_PROTOCOL = /file:/.test(location.protocol), t.FLASH_VERSION = null);
    t.IS_ENABLED_FLASH = function () {
      var e;
      if (document.all || f) {
        try {
          if (e = new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) {
            return t.FLASH_VERSION = A = e.GetVariable("$version").split(" ")[1].replace(/,/g, "."), window.console && console.log("FLASH_VERSION", A), !0
          }
        } catch (i) {
          return !1
        }
      } else {
        try {
          if (navigator.plugins && navigator.plugins.length > 0 && (e = navigator.plugins["Shockwave Flash"])) {
            for (var o = e.description.split(" "), n = 0; n < o.length; ++n) {
              isNaN(parseInt(o[n])) || (t.FLASH_VERSION = A = o[n], window.console && console.log("FLASH_VERSION", parseInt(o[n])))
            }
            return !0
          }
        } catch (i) {
          return !1
        }
      }
      return !1
    }(), t.IS_ENABLED_MSE = function () {
      var e = window.MediaSource = window.MediaSource || window.WebKitMediaSource,
          t = window.SourceBuffer = window.SourceBuffer || window.WebKitSourceBuffer,
          i = e && "function" == typeof e.isTypeSupported && e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),
          o = !t || t.prototype && "function" == typeof t.prototype.appendBuffer && "function" == typeof t.prototype.remove;
      if (!l) {
        return i && o
      }
    }(), t.BROWSER_TYPE = function () {
      return i.indexOf("Edge") > -1 ? "Edge" : i.indexOf(".NET") > -1 ? "IE" : i.indexOf("QQBrowser") > -1 ? "QQBrowser" : i.indexOf("Mac OS") > -1 ? "safari" : i.indexOf("Chrome") > -1 ? "chrome" : "other"
    }()
  }, function (e, t) {
    function i(e, t, i) {
      return e ? (e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i), i) : console.warn("element not exists")
    }

    function o(e, t, i) {
      return e ? void (e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i)) : console.warn("element not exists")
    }

    function n() {
      var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "div",
          t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},
          i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, o = document.createElement(e);
      for (var n in t) {
        if (t.hasOwnProperty(n)) {
          var r = t[n];
          null === r ? o.removeAttribute(r) : o.setAttribute(n, r)
        }
      }
      for (var s in i) {
        i.hasOwnProperty(s) && (o[s] = i[s])
      }
      return o
    }

    function r(e) {
      return document.getElementById(e)
    }

    function s(e, t) {
      e.classList ? e.classList.add(t) : c(e, t) || (e.className = e.className + " " + t)
    }

    function a(e, t) {
      e.classList ? e.classList.remove(t) : e.className = e.className.replace(u(t), " ")
    }

    function l(e, t, i) {
      i ? s(e, t) : a(e, t)
    }

    function c(e, t) {
      return e.classList ? e.classList.contains(t) : u(t).test(e.className)
    }

    function u(e) {
      return new RegExp("(^|\\s)" + e + "($|\\s)")
    }

    function p(e) {
      var t = void 0;
      if (e.getBoundingClientRect && e.parentNode && (t = e.getBoundingClientRect()), !t) {
        return {left: 0, top: 0}
      }
      var i = document.documentElement, o = document.body, n = i.clientLeft || o.clientLeft || 0,
          r = window.pageXOffset || o.scrollLeft, s = t.left + r - n, a = i.clientTop || o.clientTop || 0,
          l = window.pageYOffset || o.scrollTop, c = t.top + l - a;
      return {left: Math.round(s), top: Math.round(c)}
    }

    function h(e, t, i) {
      var o = {}, n = i || p(e), r = e.offsetWidth, s = e.offsetHeight, a = n.top, l = n.left, c = t.pageY || t.clientY,
          u = t.pageX || t.clientX;
      return t.changedTouches && (u = t.changedTouches[0].pageX, c = t.changedTouches[0].pageY), o.y = Math.max(0, Math.min(1, (a - c + s) / s)), o.x = Math.max(0, Math.min(1, (u - l) / r)), o
    }

    function d(e, t, i) {
      var o = arguments.length > 3 && void 0 !== arguments[3] && arguments[3], n = document.createElement("script");
      if (n.onload = n.onreadystatechange = function () {
        this.readyState && "loaded" !== this.readyState && "complete" !== this.readyState || ("function" == typeof t && t(), n.onload = n.onreadystatechange = null, n.parentNode && !o && n.parentNode.removeChild(n))
      }, i) {
        for (var r in i) {
          if (i.hasOwnProperty(r)) {
            var s = i[r];
            null === s ? n.removeAttribute(s) : n.setAttribute(r, s)
          }
        }
      }
      n.src = e, document.getElementsByTagName("head")[0].appendChild(n)
    }

    function f() {
      var e = document, t = e.documentElement, i = e.body;
      return {
        width: t && t.clientWidth || i && i.offsetWidth || window.innerWidth || 0,
        height: t && t.clientHeight || i && i.offsetHeight || window.innerHeight || 0
      }
    }

    t.__esModule = !0, t.on = i, t.off = o, t.createEl = n, t.get = r, t.addClass = s, t.removeClass = a, t.toggleClass = l, t.hasClass = c, t.findElPosition = p, t.getPointerPosition = h, t.loadScript = d, t.getViewportSize = f
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n() {
      return I++
    }

    function r(e, t, i) {
      t.guid || (t.guid = n());
      var o = function () {
        t.apply(e, arguments)
      };
      return o.guid = i ? i + "_" + t.guid : t.guid, o
    }

    function s(e) {
      if (e instanceof Array) {
        return 0 === e.length
      }
      for (var t in e) {
        if (e.hasOwnProperty(t)) {
          return !1
        }
      }
      return !0
    }

    function a(e) {
      e = 0 | e;
      var t = 3600, i = 60, o = e / t | 0, n = (e - o * t) / i | 0, r = e - o * t - n * i;
      return o = o > 0 ? o + ":" : "", n = n > 0 ? n + ":" : "00:", r = r > 0 ? r + "" : o.length > 0 || n.length > 0 ? "00" : "00:00", o = 2 == o.length ? "0" + o : o, n = 2 == n.length ? "0" + n : n, r = 1 == r.length ? "0" + r : r, o + n + r
    }

    function l(e) {
      p.__isFullscreen = !!document[S.fullscreenElement], p.__isFullscreen || g.off(document, S.fullscreenchange, l), b.pub({
        type: w.MSG.FullScreen,
        src: "util",
        ts: e.timeStamp,
        detail: {isFullscreen: p.__isFullscreen}
      }, p.player)
    }

    function c(e, t) {
      g.off(t.video.el, "webkitbeginfullscreen", c), "webkitbeginfullscreen" == e.type ? (g.on(t.video.el, "webkitendfullscreen", function (e) {
        c(e, t)
      }), b.pub({
        type: w.MSG.FullScreen,
        src: "util",
        ts: e.timeStamp,
        detail: {isFullscreen: !0}
      }, p.player)) : "webkitendfullscreen" == e.type && (g.off(t.video.el, "webkitendfullscreen", c), b.pub({
        type: w.MSG.FullScreen,
        src: "util",
        ts: e.timeStamp,
        detail: {isFullscreen: !1}
      }, p.player))
    }

    function u(e) {
      27 === e.keyCode && p(p.player, !1)
    }

    function p(e, t, i) {
      if ("undefined" == typeof t) {
        return p.__isFullscreen || !1
      }
      var o = e.options.systemFullscreen;
      p.player = e, S.requestFullscreen ? t ? (g.on(document, S.fullscreenchange, l), i && i[S.requestFullscreen]()) : document[S.exitFullscreen]() : o && e.video.el.webkitEnterFullScreen ? (g.on(e.video.el, "webkitbeginfullscreen", function (t) {
        c(t, e)
      }), t ? e.video.el.webkitEnterFullScreen() : e.video.el.webkitExitFullscreen()) : (p.__isFullscreen = t, p.__isFullscreen ? (p.__origOverflow = document.documentElement.style.overflow, document.documentElement.style.overflow = "hidden", g.on(document, "keydown", u)) : (document.documentElement.style.overflow = p.__origOverflow, g.off(document, "keydown", u)), g.toggleClass(document.body, "vcp-full-window", t), b.pub({
        type: w.MSG.FullScreen,
        src: "util",
        detail: {isFullscreen: p.__isFullscreen}
      }, p.player))
    }

    function h(e) {
      for (var t = arguments.length, i = Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) {
        i[o - 1] = arguments[o]
      }
      for (var n = 0; n < i.length; n++) {
        var r = i[n];
        for (var s in r) {
          r.hasOwnProperty(s) && (e[s] = e[s] || r[s])
        }
      }
      return e
    }

    function d(e, t) {
      return "undefined" == typeof t ? JSON.parse(localStorage[e] || "null") : void (localStorage[e] = JSON.stringify(t))
    }

    function f(e, t) {
      if (e = e || "0.0.0", t = t || "0.0.0", e == t) {
        return 0
      }
      for (var i = e.split("."), o = t.split("."), n = Math.max(i.length, o.length), r = 0; r < n; r++) {
        var s = ~~o[r], a = ~~i[r];
        if (s < a) {
          return 1
        }
        if (s > a) {
          return -1
        }
      }
      return -1
    }

    function y(e) {
      return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\"/g, "&quot;").replace(/\'/g, "&#39;").replace(/\//g, "&#x2F;")
    }

    function A(e) {
      var t = "unknown";
      return e.isFormat("rtmp") ? t = "rtmp" : e.isFormat("flv") ? t = "flv" : e.isFormat("m3u8") ? t = "m3u8" : e.isFormat("mp4") && (t = "mp4"), t
    }

    function v(e, t) {
      e = e.replace(/^(http|https):/, "");
      var i = window.location.protocol;
      return "http:" != i && "https:" != i && (i = t || "https:"), e = i + e
    }

    t.__esModule = !0, t.supportStyle = t.console = t.VideoType = t.CDNPath = t.FullscreenApi = void 0, t.guid = n, t.bind = r, t.isEmpty = s, t.convertTime = a, t.doFullscreen = p, t.extend = h, t.store = d, t.compareVersion = f, t.escapeHTML = y, t.getFormat = A, t.unifyProtocol = v;
    for (var m = i(2), g = o(m), w = i(4), b = o(w), M = i(1), I = (o(M), 1), S = t.FullscreenApi = {
      requestFullscreen: null,
      exitFullscreen: null,
      fullscreenElement: null,
      fullscreenEnabled: null,
      fullscreenchange: null,
      fullscreenerror: null
    }, E = [["requestFullscreen", "exitFullscreen", "fullscreenElement", "fullscreenEnabled", "fullscreenchange", "fullscreenerror"], ["webkitRequestFullscreen", "webkitExitFullscreen", "webkitFullscreenElement", "webkitFullscreenEnabled", "webkitfullscreenchange", "webkitfullscreenerror"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitCurrentFullScreenElement", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitfullscreenerror"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozFullScreenElement", "mozFullScreenEnabled", "mozfullscreenchange", "mozfullscreenerror"], ["msRequestFullscreen", "msExitFullscreen", "msFullscreenElement", "msFullscreenEnabled", "MSFullscreenChange", "MSFullscreenError"]], _ = E[0], T = void 0, D = 0; D < E.length; D++) {
      if (E[D][1] in document) {
        T = E[D];
        break
      }
    }
    if (T) {
      for (var L = 0; L < T.length; L++) {
        S[_[L]] = T[L]
      }
    }
    t.CDNPath = "https://imgcache.qq.com/open/qcloud/video/vcplayer/", t.VideoType = {
      RTMP: "rtmp",
      FLV: "flv",
      M3U8: "m3u8"
    }, t.console = {
      log: function () {
        window.console && window.console.log.apply(window.console, arguments)
      }, warn: function () {
        window.console && window.console.warn.apply(window.console, arguments)
      }, error: function () {
        window.console && window.console.error.apply(window.console, arguments)
      }
    }, t.supportStyle = function () {
      var e = document.createElement("div"), t = "Khtml O Moz Webkit".split(" "), i = t.length;
      return function (o) {
        if (o in e.style) {
          return !0
        }
        if ("-ms-" + o in e.style) {
          return !0
        }
        for (o = o.replace(/^[a-z]/, function (e) {
          return e.toUpperCase()
        }); i--;) {
          if (t[i] + o in e.style) {
            return !0
          }
        }
        return !1
      }
    }()
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      var t = e.guid;
      return t ? (h[t] = h[t] || {}, h[t]) : (console.error(e, " has no guid."), {})
    }

    function r(e) {
      var t = e.guid;
      return t ? (d[t] = d[t] || {}, d[t]) : (console.error(e, " has no guid."), {})
    }

    function s(e, t) {
      a(e.type, e, t), a("*", e, t)
    }

    function a(e, t, i) {
      try {
        var o = n(i), s = r(i);
        if (!o[e]) {
          return
        }
        var a = o[e];
        for (var l in a) {
          if (a.hasOwnProperty(l)) {
            var c = a[l], u = s[l];
            if ("function" != typeof u) {
              return !1
            }
            for (var p = 0; p < c.length; p++) {
              var h = c[p];
              "*" !== h && h !== t.src || u(t)
            }
          }
        }
      } catch (d) {
        window.console && console.error && console.error(d.stack || d)
      }
    }

    function l(e, t, i, o) {
      var s = n(o), a = r(o);
      return i.guid ? (a[i.guid] = i, s[e] = s[e] || {}, s[e][i.guid] = s[e][i.guid] || [], s[e][i.guid].push(t), i) : console.error("callback function need guid")
    }

    function c(e, t, i, o) {
      var s = n(o), a = r(o);
      if (("*" == e || s[e]) && ("*" == e || s[e][i.guid])) {
        for (var l in s) {
          if (("*" === e || l == e) && s.hasOwnProperty(l)) {
            if ("*" !== i) {
              var c = s[l][i.guid];
              "*" === t && (c = []);
              for (var u = 0; u < c.length;) {
                c[u] === t ? c.splice(u, 1) : u++
              }
              0 == c.length && delete s[l][i.guid], p.isEmpty(s[l]) && delete s[l]
            } else {
              for (var h in s[l]) {
                delete a[h]
              }
              delete s[l]
            }
          }
        }
      }
    }

    t.__esModule = !0, t.MSG = void 0, t.pub = s, t.sub = l, t.unsub = c;
    var u = i(3), p = o(u), h = (t.MSG = {
      Error: "error",
      TimeUpdate: "timeupdate",
      Load: "load",
      MetaLoaded: "loadedmetadata",
      Loaded: "loadeddata",
      Progress: "progress",
      FullScreen: "fullscreen",
      Play: "play",
      Playing: "playing",
      Pause: "pause",
      Ended: "ended",
      Seeking: "seeking",
      Seeked: "seeked",
      Resize: "resize",
      VolumeChange: "volumechange"
    }, {}), d = {}
  }, function (e, t, i) {
    function o(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function n(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    t.__esModule = !0, t.Player = t.dom = t.util = t.browser = t.MSG = void 0, i(6);
    var s = i(1), a = n(s), l = i(2), c = n(l), u = i(3), p = n(u), h = i(4), d = n(h), f = i(23), y = o(f), A = i(26),
        v = o(A), m = i(27), g = o(m), w = i(35), b = o(w), M = i(36), I = o(M), S = i(37), E = o(S), _ = i(38), T = o(_),
        D = i(39), L = o(D);
    window.console || (window.console = {
      log: function () {
      }, error: function () {
      }, debug: function () {
      }, info: function () {
      }
    });
    var O = t.MSG = d.MSG, C = t.browser = a, x = t.util = p, P = t.dom = c;
    // 字幕对象的数组
    var subtitlesArray = [], subtitleIndex = 0;
    t.Player = function () {
      function e(t) {
        r(this, e), this.options = t, this.ready = !1, this.hasPlay = !1;
        var i = t.owner;
        return i ? (this.guid = x.guid(), this.listener = this.options.listener, d.sub("*", "*", x.bind(this, this.handleMsg), this), i = P.get(i), this.mtaReport = new L["default"](this, this.options), void this.render(i)) : console.error("Player need a container")
      }

      // 生成[min,max]区间的随机数字
      function f1(min, max) {
        return Math.floor(Math.random() * (max - min)) + min
      }

      // 字符串转浮点数
      function toSeconds(t) {
        var s = 0.0;

        if (t) {
          var p = t.split(':');
          for (i = 0; i < p.length; i++) {
            s = s * 60 + parseFloat(p[i].replace(',', '.'));
          }
        }

        return s;
      }

      /**
       * 把 SRT 格式的字幕文件解析为字幕的对象数组，格式为:
       * [
       *      {sn: "0", startTime: 0.89, endTime: 7.89, content: "这里是一系列与Hadoop↵有关的其他开源项目："},
       *      {sn: "1", startTime: 8.38, endTime: 14.85, content: "Eclipse是一个IBM贡献到开源社区里的集成开发环境（IDE）。"}
       * ]
       *
       * @param  srt 字幕文件的内容
       * @return Array
       */
      function parseSrtSubtitles(srt) {
        var subtitles = [];
        var textSubtitles = srt.replace(/\r/g, '').split('\n\n'); // 每条字幕的信息，包含了序号，时间，字幕内容

        for (var i = 0; i < textSubtitles.length; ++i) {
          var textSubtitle = textSubtitles[i].split('\n');

          if (textSubtitle.length >= 2) {
            var sn = textSubtitle[0], textSubtitleArray = textSubtitle[1].trim().split(' --> '); // 字幕的序号
            var startTime = toSeconds(textSubtitleArray[0]); // 字幕的开始时间
            var endTime = toSeconds(textSubtitleArray[1]); // 字幕的结束时间
            var content = textSubtitle[2]; // 字幕的内容

            // 字幕可能有多行
            if (textSubtitle.length > 2) {
              for (var j = 3; j < textSubtitle.length; j++) {
                content += '\n' + textSubtitle[j];
              }
            }

            // 字幕对象
            var subtitle = {
              sn: sn,
              startTime: startTime,
              endTime: endTime,
              content: content
            };

            subtitles.push(subtitle);
          }
        }

        return subtitles;
      }

      // 获取当前时间对应的字幕,存在当前时间没有字幕的情况
      function getCurrentSubtitle(currentTime, display) {
        // 如果不展示字幕,则不显示字幕
        if (!display) {
          return "";
        }
        let item = subtitlesArray[subtitleIndex];
        if (item.startTime <= currentTime && currentTime < item.endTime) {
          return item.content;
        }
        // 按顺序播放,大于当前字幕结束时间时,会小于下一个字幕的结束时间
        if (currentTime > item.endTime) {
          subtitleIndex ++;
          item = subtitlesArray[subtitleIndex];
          if (currentTime < item.startTime) {
            // 在[current.endTime, (current+1).startTime)区间内没有字幕
            return "";
          } else if (item.startTime <= currentTime && currentTime < item.endTime) {
            return item.content;
          }
        }
        // 判断当前的时间是否还在第一句话前
        if (currentTime < subtitlesArray[0].startTime) {
          return "";
        }
        // 判断当前的时间是否还在第一句话
        if (currentTime < subtitlesArray[0].endTime) {
          return subtitlesArray[0].content;
        }
        const length = subtitlesArray.length;
        // 判断当前的时间是否已经大于了字幕最后一句话的结束时间
        if (currentTime > subtitlesArray[length - 1].endTime) {
          return "";
        }
        // 跨度查询,减少查询时间
        const step = 10;
        if (length <= step) {
          for (let i = 0; i < length; i++) {
            const item = subtitlesArray[i];
            if (item.startTime <= currentTime && currentTime < item.endTime) {
              subtitleIndex = i;
              return item.content;
            }
            // 按顺序播放,大于当前字幕结束时间时,会小于下一个字幕的结束时间
            if (currentTime > item.endTime && currentTime < subtitlesArray[i + 1].startTime) {
              // 在[current.endTime, (current+1).startTime)区间内没有字幕
              return "";
            }
          }
        } else {
          for (let i = 0; i < length; i += step) {
            // 判断当前字幕的结束时间是否大于了当前时间
            if (currentTime < subtitlesArray[i].endTime) {
              // 是的话,则进行小范围遍历,直到找到对应的索引
              for (let j = i - step; j < i; j++) {
                const item = subtitlesArray[j];
                if (item.startTime <= currentTime && currentTime < item.endTime) {
                  subtitleIndex = j;
                  return item.content;
                }
                // 按顺序播放,大于当前字幕结束时间时,会小于下一个字幕的结束时间
                if (currentTime > item.endTime && currentTime < subtitlesArray[j + 1].startTime) {
                  // 在[current.endTime, (current+1).startTime)区间内没有字幕
                  return "";
                }
              }
            }
          }
          // 若没有找到对应的时间索引,则所当前时间处于[length-10:length-1]
          for (let i = length - step; i < length; i++) {
            const item = subtitlesArray[i];
            if (item.startTime <= currentTime && currentTime < item.endTime) {
              subtitleIndex = i;
              return item.content;
            }
            // 按顺序播放,大于当前字幕结束时间时,会小于下一个字幕的结束时间
            if (currentTime > item.endTime && currentTime < subtitlesArray[i + 1].startTime) {
              // 在[current.endTime, (current+1).startTime)区间内没有字幕
              return "";
            }
          }
        }
      }

      return e.prototype.render = function (e) {
        var t = "vcp-player", o = this.options, spanElment = P.createEl("span", {"class": "oneweek-video-el"}),
            subtitleElment = P.createEl("span", {"class": "oneweek-video-subtitle", "id": "oneweek-video-subtitle"});
        // 加载字幕
        if (o.subtitle_srt) {
          subtitleElment.style.fontSize = o.subtitle_fontsize;
          // 防止onreadystatechange被调用多次
          let hasReceived = false;
          const httpRequest = new XMLHttpRequest();//第一步：建立所需的对象
          httpRequest.open('GET', o.subtitle_srt);//第二步：打开连接  将请求参数写在url中
          httpRequest.send();//第三步：发送请求  将请求参数写在URL中
          /**
           * 获取数据后的处理程序
           */
          httpRequest.onreadystatechange = function () {
            if (httpRequest.status === 200 && httpRequest.responseText && !hasReceived) {
              hasReceived = true;
              subtitlesArray = parseSrtSubtitles(httpRequest.responseText);
              subtitleElment.innerHTML = getCurrentSubtitle(i.currentTime(), o.subtitle_display);
              // 定时切换字幕
              setInterval(() => {
                subtitleElment.innerHTML = getCurrentSubtitle(i.currentTime(), o.subtitle_display);
              }, 500);
            }
          };
        }


        // 如果存在appear_text则进行文字悬浮
        if (o.appear_text) {
          spanElment.innerHTML = o.appear_text;
          spanElment.style.display = "none";
          const appearColorLength = o.appear_color.length, appearColor = o.appear_color,
              appearFontsizeMin = o.appear_fontsize_min, appearFontsizeMax = o.appear_fontsize_max,
              appearTime = o.appear_time, disappearTime = o.disappear_time;
          let showStudengNumPositionX, showStudengNumPositionY;
          // 设置出现随机字符的周期 -> 出现最大时长+消失的最大时长
          const interTime = (appearTime + disappearTime) * 1000;
          // 创建定时器
          setInterval(() => {
            // 消失的时长,范围是[1,消失的最大时长]
            const disappearDuration = f1(1, disappearTime) * 1000;
            setTimeout(() => {
              // 随机位置的style.left
              showStudengNumPositionX = f1(20, 80);
              // 随机位置的style.top
              showStudengNumPositionY = f1(20, 80);
              // 出现的时长,范围是[1,出现的最大时长]
              const appearDuration = f1(1, appearTime) * 1000;
              // 随机颜色
              const appearColorIndex = f1(0, appearColorLength);
              // 随机字体大小
              const fontSize = f1(appearFontsizeMin, appearFontsizeMax);
              // 展示防盗录文字
              spanElment.style.display = "";
              spanElment.style.color = appearColor[appearColorIndex];
              spanElment.style.left = showStudengNumPositionX + "%";
              spanElment.style.top = showStudengNumPositionY + "%";
              spanElment.style.fontSize = fontSize + 'px';
              setTimeout(() => {
                // 不展示防盗录文字
                spanElment.style.display = "none";
              }, appearDuration);
            }, disappearDuration);
          }, interTime);
        }
        if (C.TOUCH_ENABLED && (t += " touchable"), this.el = P.createEl("div", {"class": t}),
            // 添加防盗录节点span
            this.el.appendChild(spanElment),
            this.el.appendChild(subtitleElment),
            e.appendChild(this.el), this.errortips = new T["default"](this), this.errortips.render(this.el), this.loading = new E["default"](this), this.loading.render(this.el), this.options.width = this.options.width || e.offsetWidth, this.options.height = this.options.height || e.offsetHeight, this.size(this.options.width, this.options.height), !this.verifyOptions()) {
          return this.listener({type: "error", code: 5}), x.console.error("create failed")
        }
        if (!this.options.flash && C.HASVIDEO) {
          var i = new y["default"](this);
          i.render(this.el), this.video = i
        } else {
          var o = new v["default"](this);
          o.render(this.el), this.video = o
        }
        if (!this.video) {
          return x.console.error("create video failed")
        }
        this.poster = new I["default"](this), this.poster.render(this.el), (C.IS_SAFARI && parseInt(C.SAFARI_VERSION) > 10 || C.IOS_VERSION > 10) && "system" == this.options.controls || (this.bigplay = new b["default"](this), this.bigplay.render(this.el));
        var n = void 0;
        n = !(this.options.controls && "default" != this.options.controls && (!this.options.flash || "system" != this.options.controls)), n && (this.panel = new g["default"](this), this.panel.render(this.el)), this.setup()
      }, e.prototype.verifyOptions = function () {
        return C.IE_VERSION && x.compareVersion(C.IE_VERSION, "8.0") == -1 ? (this.errortips.show({code: 5}), !1) : !!this.options.src || (this.options.videoSource.hasUrl() ? C.IS_IE || !C.IS_ENABLED_FLASH ? this.errortips.show({code: 5}) : this.errortips.show({code: 5}) : this.errortips.show({code: 12}), !1)
      }, e.prototype.size = function (e, t, i) {
        i = i || "cover";
        var o = /^\d+\.?\d{0,2}%$/, n = void 0, r = void 0;
        if (o.test(e) || o.test(t)) {
          n = e, r = t
        } else {
          var s = this.video ? this.video.videoWidth() : this.options.width,
              a = this.video ? this.video.videoHeight() : this.options.height;
          if (n = e, r = t, s && a) {
            var l = s / a;
            "fit" == i && (n = e, r = n / l, r > t && (n *= t / r, r = t))
          }
          var c = P.getViewportSize();
          c.width > 0 && n > c.width && (n = c.width)
        }
        n += o.test(n) ? "" : "px", r += o.test(r) ? "" : "px", this.el.style.width = n, this.el.style.height = r, this.video && (this.video.width(n), this.video.height(r)), this.width = n, this.height = r
      }, e.prototype.setup = function () {
        if (this.__handleEvent = x.bind(this, this.handleEvent), C.IS_MOBILE) {
          if (this.options.autoplay) {
            var e = this;
            document.addEventListener("WeixinJSBridgeReady", function () {
              e.play()
            })
          }
        } else {
          this.loading.show()
        }
      }, e.prototype.destroy = function () {
        this.video && this.video.destroy(), this.panel && this.panel.destroy(), this.bigplay && this.bigplay.destroy(), this.loading && this.loading.destroy(), d.unsub("*", "*", this.handleMsg, this), this.video = this.panel = this.bigplay = this.loading = null, this.el.parentNode.removeChild(this.el)
      }, e.prototype.setListener = function (e) {
        this.listener = e
      }, e.prototype.handleEvent = function (e) {
        switch (e.type) {
          case"mousemove":
            if (this.__lastmove && new Date - this.__lastmove < 100) {
              break
            }
            var t = this;
            if (this.__movecnt = this.__movecnt || 0, this.__movecnt++, this.__movecnt < 5) {
              setTimeout(function () {
                t.__movecnt = 0
              }, 500);
              break
            }
            this.__movecnt = 0, this.__lastmove = +new Date, clearTimeout(this.__moveid), t.panel && t.panel.show(), this.__moveid = setTimeout(function () {
              t.playing() && t.panel && t.panel.hide()
            }, 3000)
        }
      }, e.prototype.handleMsg = function (e) {
        switch (e.type) {
          case O.Load:
            P.removeClass(this.el, "vcp-playing"), ("none" === this.options.preload || this.options.hlsConfig && this.options.hlsConfig.autoStartLoad === !1) && this.loading.hide();
            break;
          case O.Play:
            if (!this.playing()) {
              break
            }
            !this.hasPlay && this.options.flash && (this.mtaReport.reportFlash(), this.hasPlay = !0), P.addClass(this.el, "vcp-playing"), this.video.type() == x.VideoType.RTMP && (this.__wait = !0, this.loading.show()), P.on(this.el, "mousemove", this.__handleEvent);
            break;
          case O.Playing:
            this.loading.hide();
            break;
          case O.TimeUpdate:
            this.__wait && (this.__wait = !1, this.loading.hide());
            break;
          case O.Pause:
            P.off(this.el, "mousemove", this.__handleEvent), P.removeClass(this.el, "vcp-playing");
            break;
          case O.Ended:
            P.off(this.el, "mousemove", this.__handleEvent), this.panel && this.panel.show(), P.removeClass(this.el, "vcp-playing");
            break;
          case O.MetaLoaded:
            this.loading.hide(), this.mtaReport.report(), this.size(this.options.width, this.options.height);
            break;
          case O.Seeking:
            this.loading.show();
            break;
          case O.Seeked:
            this.loading.hide();
            break;
          case O.FullScreen:
            var t = this;
            setTimeout(function () {
              if (e.detail.isFullscreen) {
                document.getElementById('oneweek-video-subtitle').style.fontSize = t.options.subtitle_fullscreen_fontsize;
              } else {
                document.getElementById('oneweek-video-subtitle').style.fontSize = t.options.subtitle_fontsize;
              }
              P.toggleClass(t.el, "vcp-fullscreen", e.detail.isFullscreen)
            }, 0);
            break;
          case O.Error:
            this.loading.hide(), this.errortips.show(e.detail), this.panel && this.panel.show();
            try {
              var i = this.options.videoSource, o = x.getFormat(i);
              C.IS_X5TBS ? MtaH5.clickStat("x5_err", {format: o}) : MtaH5.clickStat("error", {format: o})
            } catch (n) {
            }
        }
        !e["private"] && this.listener && this.listener(e)
      }, e.prototype.currentTime = function (e) {
        return this.video.currentTime(e)
      }, e.prototype.currentRate = function (e) {
        return this.video.options.curRate;
      }, e.prototype.duration = function () {
        return this.video.duration()
      }, e.prototype.percent = function (e) {
        return this.video.duration() ? "undefined" == typeof e ? this.video.currentTime() / this.video.duration() : void this.video.currentTime(this.video.duration() * e) : 0
      }, e.prototype.buffered = function () {
        return this.video.duration() ? this.video.buffered() / this.video.duration() : 0
      }, e.prototype.pause = function () {
        this.video.pause()
      }, e.prototype.play = function () {
        var e;
        this.errortips.clear(), (e = this.video).play.apply(e, arguments)
      }, e.prototype.togglePlay = function () {
        this.errortips.clear(), this.video.togglePlay()
      }, e.prototype.stop = function () {
        this.video.stop()
      }, e.prototype.mute = function (e) {
        return this.video.mute(e)
      }, e.prototype.volume = function (e) {
        return this.video.volume(e)
      }, e.prototype.fullscreen = function (e) {
        return this.video.fullscreen(e)
      }, e.prototype.load = function (e, t) {
        this.errortips.clear(), this.loading.show(), this.video.load(e || this.options.src, t)
      }, e.prototype.playing = function () {
        return this.video && this.video.playing()
      }, e.prototype.paused = function () {
        return this.video && this.video.paused()
      }, e
    }()
  }, function (e, t, i) {
    var o = i(7);
    "string" == typeof o && (o = [[e.id, o, ""]]);
    i(22)(o, {});
    o.locals && (e.exports = o.locals)
  }, function (e, t, i) {
    // 加入节点(class="oneweek-video-el")的样式,设置为绝对定位,并且将层级设置为1000,保证全屏时不被视频遮挡 |
    // 加入节点(class="oneweek-video-subtitle")的样式,设置层级为1,保证不被视频遮挡即可,并且设置为字体为白色黑边,居中等
    t = e.exports = i(8)(), t.push([e.id, ".vcp-player .oneweek-video-subtitle{position:absolute;z-index:1;bottom:2%;color:#fff;width:100%;text-align:center;-webkit-text-stroke:1px black;text-stroke:1px black;font-weight:bolder;}" +
    ".vcp-player .oneweek-video-el{position:absolute;z-index:1000;}" +
    " .vcp-player{position:relative;z-index:0;font-family:Tahoma,\\\\5FAE\\8F6F\\96C5\\9ED1,\\u5b8b\\u4f53,Verdana,Arial,sans-serif;background-color:#000}.vcp-player video{display:block;overflow:hidden;}.vcp-fullscreen.vcp-player,.vcp-fullscreen video,body.vcp-full-window{width:100%!important;height:100%!important}body.vcp-full-window{overflow-y:auto}.vcp-full-window .vcp-player{position:fixed;left:0;top:0;z-index:2147483647}.vcp-pre-flash,.vcp-video{width:100%;height:100%}.vcp-pre-flash{z-index:999;background:#000;position:absolute;top:0;left:0}.vcp-controls-panel{position:absolute;bottom:0;width:100%;font-size:16px;height:3em;z-index:1000}.vcp-controls-panel.show{-webkit-animation:fadeIn ease .8s;animation:fadeIn ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.vcp-controls-panel.hide{-webkit-animation:fadeOut ease .8s;animation:fadeOut ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.vcp-panel-bg{width:100%;height:100%;position:absolute;left:0;top:0;background-color:#242424;opacity:.8;filter:alpha(opacity=80);z-index:1000}.vcp-playtoggle{cursor:pointer;position:relative;z-index:1001;width:3em;height:100%;float:left;background-image:url(" + i(9) + ");background-image:url(" + i(10) + ")\\0}.vcp-playtoggle:focus,.vcp-playtoggle:hover{background-color:#708090;opacity:.9;filter:alpha(opacity=90)}.touchable .vcp-playtoggle:hover{background-color:transparent;opacity:1}.vcp-playing .vcp-playtoggle{background-image:url(" + i(11) + ");background-image:url(" + i(12) + ")\\0}.vcp-bigplay{width:100%;height:80%;position:absolute;background-color:white\\0;filter:alpha(opacity=0);opacity:0;z-index:1000;top:0;left:0}.vcp-slider{position:relative;z-index:1001;float:left;background:#c4c4c4;height:10px;opacity:.8;filter:alpha(opacity=80);cursor:pointer}.vcp-slider .vcp-slider-track{width:0;height:100%;margin-top:0;opacity:1;filter:alpha(opacity=100);background-color:#1e90ff}.vcp-slider .vcp-slider-thumb{cursor:pointer;background-color:#fff;position:absolute;top:0;left:0;border-radius:1em!important;height:10px;margin-left:-5px;width:10px}.vcp-slider-vertical{position:relative;width:.5em;height:8em;top:-5.6em;z-index:1001;background-color:#1c1c1c;opacity:.9;filter:alpha(opacity=90);cursor:pointer}.vcp-slider-vertical .vcp-slider-track{background-color:#1275cf;width:.5em;height:100%;opacity:.8;filter:alpha(opacity=80)}.vcp-slider-vertical .vcp-slider-thumb{cursor:pointer;position:absolute;background-color:#f0f8ff;width:.8em;height:.8em;border-radius:.8em!important;margin-top:-.4em;top:0;left:-.15em}.vcp-timeline{top:-10px;left:0;height:10px;position:absolute;z-index:1001;width:100%}.vcp-timeline .vcp-slider-thumb{top:-4px}.vcp-timeline .vcp-slider{margin-top:8px;height:2px;width:100%}.vcp-timeline:hover .vcp-slider{margin-top:0;height:10px}.vcp-timeline:hover .vcp-slider-thumb{display:block;width:16px;height:16px;top:-3px;margin-left:-8px}.vcp-timelabel{display:inline-block;line-height:3em;float:left;color:#fff;padding:0 9px}.vcp-timelabel,.vcp-volume{height:3em;z-index:1001;position:relative}.vcp-volume{width:3em;cursor:pointer;float:right;background-color:transparent;opacity:.9;filter:alpha(opacity=90)}.vcp-volume-icon{background-image:url(" + i(13) + ");background-image:url(" + i(14) + ")\\0;display:inline-block;width:3em;height:3em;position:absolute;left:0;top:0}.vcp-volume-muted .vcp-volume-icon{background-image:url(" + i(15) + ");background-image:url(" + i(16) + ")\\0}.vcp-volume .vcp-slider-vertical{top:-8.4em;left:1em;display:none}.vcp-volume .vcp-slider-track{position:absolute;bottom:0}.vcp-volume:hover .vcp-slider-vertical{display:block}.vcp-volume .vcp-volume-bg{height:8.8em;width:2em;position:absolute;left:.25em;top:-8.8em;background:#242424;display:none}.vcp-volume:hover .vcp-slider-vertical,.vcp-volume:hover .vcp-volume-bg{display:block}.vcp-fullscreen-toggle{position:relative;width:3em;height:3em;float:right;cursor:pointer;z-index:1001;background-image:url(" + i(17) + ");background-image:url(" + i(18) + ")\\0}.vcp-fullscreen .vcp-fullscreen-toggle{background-image:url(" + i(19) + ");background-image:url(" + i(20) + ')\\0}.vcp-loading{box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;text-indent:-9999em}.vcp-loading:before{box-sizing:inherit;content:"";display:block;width:100%;height:100%;border-radius:50%;border:3px solid hsla(0,0%,100%,0);border-left-color:#fff;border-right-color:#fff;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:load8 1.1s infinite linear;animation:load8 1.1s infinite linear}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.vcp-poster{position:absolute;left:0;top:0;overflow:hidden;z-index:1000;width:100%;height:100%;display:none}.vcp-poster-pic{position:relative}.vcp-poster-pic.cover,.vcp-poster-pic.default{left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vcp-poster-pic.cover{width:100%}.vcp-poster-pic.stretch{width:100%;height:100%}.vcp-error-tips{position:absolute;z-index:1001;width:100%;height:4.5em;left:0;top:50%;color:#ff4500;margin-top:-5.25em;text-align:center;display:none}.vcp-clarityswitcher{height:3em;width:3em;cursor:pointer;position:relative;z-index:1001;float:right;background-color:transparent;opacity:.9}.vcp-vertical-switcher-container{width:3em;position:absolute;left:0;bottom:2.4em;background:#242424;display:none}.vcp-vertical-switcher-current{display:block;color:#fff;text-align:center;line-height:3em}.vcp-vertical-switcher-item{display:block;color:#fff;text-align:center;line-height:2em}.vcp-vertical-switcher-item.current{color:#888}.vcp-share>a{width:3em;height:3em;cursor:pointer;background-image:url(' + i(21) + ");opacity:.9;display:block}.vcp-share{width:3em;height:3em;position:relative;float:right;z-index:1001}.vcp-vertical-share-container{width:auto;height:auto;position:absolute;background:rgba(36,36,36,.8);padding:.5em;overflow:hidden;display:none}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{-webkit-animation:fadeOut ease .8s;animation:fadeOut ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{-webkit-animation:fadeIn ease .8s;animation:fadeIn ease .8s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}", ""])
  }, function (e, t) {
    e.exports = function () {
      var e = [];
      return e.toString = function () {
        for (var e = [], t = 0; t < this.length; t++) {
          var i = this[t];
          i[2] ? e.push("@media " + i[2] + "{" + i[1] + "}") : e.push(i[1])
        }
        return e.join("")
      }, e.i = function (t, i) {
        "string" == typeof t && (t = [[null, t, ""]]);
        for (var o = {}, n = 0; n < this.length; n++) {
          var r = this[n][0];
          "number" == typeof r && (o[r] = !0)
        }
        for (n = 0; n < t.length; n++) {
          var s = t[n];
          "number" == typeof s[0] && o[s[0]] || (i && !s[2] ? s[2] = i : i && (s[2] = "(" + s[2] + ") and (" + i + ")"), e.push(s))
        }
      }, e
    }
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t) {
    e.exports = ""
  }, function (e, t, i) {
    function o(e, t) {
      for (var i = 0; i < e.length; i++) {
        var o = e[i], n = d[o.id];
        if (n) {
          n.refs++;
          for (var r = 0; r < n.parts.length; r++) {
            n.parts[r](o.parts[r])
          }
          for (; r < o.parts.length; r++) {
            n.parts.push(c(o.parts[r], t))
          }
        } else {
          for (var s = [], r = 0; r < o.parts.length; r++) {
            s.push(c(o.parts[r], t))
          }
          d[o.id] = {id: o.id, refs: 1, parts: s}
        }
      }
    }

    function n(e) {
      for (var t = [], i = {}, o = 0; o < e.length; o++) {
        var n = e[o], r = n[0], s = n[1], a = n[2], l = n[3], c = {css: s, media: a, sourceMap: l};
        i[r] ? i[r].parts.push(c) : t.push(i[r] = {id: r, parts: [c]})
      }
      return t
    }

    function r(e, t) {
      var i = A(), o = g[g.length - 1];
      if ("top" === e.insertAt) {
        o ? o.nextSibling ? i.insertBefore(t, o.nextSibling) : i.appendChild(t) : i.insertBefore(t, i.firstChild), g.push(t)
      } else {
        if ("bottom" !== e.insertAt) {
          throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.")
        }
        i.appendChild(t)
      }
    }

    function s(e) {
      e.parentNode.removeChild(e);
      var t = g.indexOf(e);
      t >= 0 && g.splice(t, 1)
    }

    function a(e) {
      var t = document.createElement("style");
      return t.type = "text/css", r(e, t), t
    }

    function l(e) {
      var t = document.createElement("link");
      return t.rel = "stylesheet", r(e, t), t
    }

    function c(e, t) {
      var i, o, n;
      if (t.singleton) {
        var r = m++;
        i = v || (v = a(t)), o = u.bind(null, i, r, !1), n = u.bind(null, i, r, !0)
      } else {
        e.sourceMap && "function" == typeof URL && "function" == typeof URL.createObjectURL && "function" == typeof URL.revokeObjectURL && "function" == typeof Blob && "function" == typeof btoa ? (i = l(t), o = h.bind(null, i), n = function () {
          s(i), i.href && URL.revokeObjectURL(i.href)
        }) : (i = a(t), o = p.bind(null, i), n = function () {
          s(i)
        })
      }
      return o(e), function (t) {
        if (t) {
          if (t.css === e.css && t.media === e.media && t.sourceMap === e.sourceMap) {
            return
          }
          o(e = t)
        } else {
          n()
        }
      }
    }

    function u(e, t, i, o) {
      var n = i ? "" : o.css;
      if (e.styleSheet) {
        e.styleSheet.cssText = w(t, n)
      } else {
        var r = document.createTextNode(n), s = e.childNodes;
        s[t] && e.removeChild(s[t]), s.length ? e.insertBefore(r, s[t]) : e.appendChild(r)
      }
    }

    function p(e, t) {
      var i = t.css, o = t.media;
      if (o && e.setAttribute("media", o), e.styleSheet) {
        e.styleSheet.cssText = i
      } else {
        for (; e.firstChild;) {
          e.removeChild(e.firstChild)
        }
        e.appendChild(document.createTextNode(i))
      }
    }

    function h(e, t) {
      var i = t.css, o = t.sourceMap;
      o && (i += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(o)))) + " */");
      var n = new Blob([i], {type: "text/css"}), r = e.href;
      e.href = URL.createObjectURL(n), r && URL.revokeObjectURL(r)
    }

    var d = {}, f = function (e) {
      var t;
      return function () {
        return "undefined" == typeof t && (t = e.apply(this, arguments)), t
      }
    }, y = f(function () {
      return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())
    }), A = f(function () {
      return document.head || document.getElementsByTagName("head")[0]
    }), v = null, m = 0, g = [];
    e.exports = function (e, t) {
      t = t || {}, "undefined" == typeof t.singleton && (t.singleton = y()), "undefined" == typeof t.insertAt && (t.insertAt = "bottom");
      var i = n(e);
      return o(i, t), function (e) {
        for (var r = [], s = 0; s < i.length; s++) {
          var a = i[s], l = d[a.id];
          l.refs--, r.push(l)
        }
        if (e) {
          var c = n(e);
          o(c, t)
        }
        for (var s = 0; s < r.length; s++) {
          var l = r[s];
          if (0 === l.refs) {
            for (var u = 0; u < l.parts.length; u++) {
              l.parts[u]()
            }
            delete d[l.id]
          }
        }
      }
    };
    var w = function () {
      var e = [];
      return function (t, i) {
        return e[t] = i, e.filter(Boolean).join("\n")
      }
    }()
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
          return typeof e
        } : function (e) {
          return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
        }, c = i(24), u = n(c), p = i(2), h = o(p), d = i(3), f = o(d), y = i(4), A = i(25), v = o(A),
        m = i(1), g = o(m),
        w = (f.FullscreenApi, {
          "0.7.1": "libs/hls.js",
          "0.7min": "libs/hls.min.js",
          "0.8.1": "libs/hls0.8.js",
          "0.8.9": "libs/hls.min.0.8.9.js",
          "0.12.4": "libs/hls.min.0.12.4.js"
        }), b = function (e) {
          function t(i) {
            return r(this, t), s(this, e.call(this, i, "H5Video"))
          }

          return a(t, e), t.prototype.render = function (t) {
            var i, o = this.player.options, n = "system" == o.controls ? "" : null, r = !!o.autoplay || null;
            return i = o.poster && "object" == l(o.poster) ? o.poster.src : "string" == typeof o.poster ? o.poster : null, this.createEl("video", {
              controls: n,
              preload: o.preload || "auto",
              autoplay: r,
              "webkit-playsinline": "",
              playsinline: "",
              "x-webkit-airplay": "allow",
              "x5-video-player-type": "h5" == o.x5_type ? "h5" : null,
              "x5-video-player-fullscreen": !!o.x5_fullscreen || null,
              "x5-video-orientation": ["landscape", "portrait", "landscape|portrait"][o.x5_orientation] || null,
              "x5-playsinline": 1 == !!o.x5_playsinline ? o.x5_playsinline : null,
              "x5-mse-live-streaming": o.live ? "" : null
            }), this.el.style.width = this.player.width, this.el.style.height = this.player.height, e.prototype.render.call(this, t)
          }, t.prototype.__hlsLoaded = function (e) {
            if (!Hls.isSupported()) {
              return this.notify({type: "error", code: 5, timeStamp: +new Date})
            }
            this.hls && this.hls.destroy();
            var t = new Hls(this.options.hlsConfig);
            t.loadSource(e), t.attachMedia(this.el), t.on(Hls.Events.MANIFEST_PARSED, function (e, t) {
            }), t.on(Hls.Events.MEDIA_DETACHED, function () {
            }), t.on(Hls.Events.ERROR, f.bind(this, this.__hlsOnError)), this.hls = t
          }, t.prototype.__hlsOnManifestParsed = function (e, t) {
            this.metaDataLoaded = !0
          }, t.prototype.__hlsOnError = function (e, t) {
            var i = t.type, o = t.details, n = t.fatal, r = this.hls;
            if (n) {
              switch (i) {
                case Hls.ErrorTypes.NETWORK_ERROR:
                  o.indexOf("TimeOut") > 0 ? f.console.error("加载视频文件超时") : f.console.error("无法加载视频文件，请检查网络，以及视频文件是否允许跨域请求访问，m3u8文件是否存在 " + (t.response && t.response.status ? "netstatus:" + t.response.status : "")), this.notify({
                    type: "error",
                    code: 2,
                    timeStamp: +new Date
                  }), r.startLoad();
                  break;
                case Hls.ErrorTypes.MEDIA_ERROR:
                  r.recoverMediaError();
                  break;
                default:
                  r.destroy()
              }
            }
          }, t.prototype.__flvLoaded = function (e) {
            if (!flvjs.isSupported()) {
              return this.notify({type: "error", code: 5, timeStamp: +new Date})
            }
            this.flv && this.flv.destroy();
            var t = flvjs.createPlayer({type: "flv", isLive: this.player.options.live, url: e}, this.options.flvConfig);
            t.attachMediaElement(this.el), t.on(flvjs.Events.ERROR, f.bind(this, function (e, t, i) {
              var o = {type: "error"};
              e == flvjs.ErrorTypes.NETWORK_ERROR && (o.code = 2), e == flvjs.ErrorTypes.MEDIA_ERROR && (o.code = 1002), e == flvjs.ErrorTypes.OTHER_ERROR, o.timeStamp = +new Date, this.notify(o)
            })), t.on(flvjs.Events.MEDIA_INFO, f.bind(this, function (e, t) {
            })), t.on(flvjs.Events.STATISTICS_INFO, f.bind(this, function (e, t) {
            })), this.flv = t, t.load()
          }, t.prototype.setup = function () {
            this.playState = v.PlayStates.IDLE, this.seekState = v.SeekStates.IDLE, this.metaDataLoaded = !1, this.__timebase = +new Date, this.on(y.MSG.MetaLoaded, this.notify), this.on(y.MSG.Loaded, this.notify), this.on(y.MSG.Progress, this.notify), this.on(y.MSG.Play, this.notify), this.on(y.MSG.Playing, this.notify), this.on(y.MSG.Pause, this.notify), this.on(y.MSG.Error, this.notify), this.on(y.MSG.TimeUpdate, this.notify), this.on(y.MSG.Ended, this.notify), this.on(y.MSG.Seeking, this.notify), this.on(y.MSG.Seeked, this.notify), this.on(y.MSG.VolumeChange, this.notify), this.on("durationchange", this.notify), this.load(this.options.src, this.options.m3u8 ? f.VideoType.M3U8 : "")
          }, t.prototype.destroy = function () {
            e.prototype.destroy.call(this), this.hls && this.hls.destroy(), this.flv && this.flv.destroy()
          }, t.prototype.notify = function (e) {
            var t = {type: e.type, src: this, ts: +new Date, timeStamp: e.timeStamp};
            switch (e.type) {
              case y.MSG.MetaLoaded:
                this.metaDataLoaded = !0;
                break;
              case y.MSG.Error:
                var i = {
                  1: "MEDIA_ERR_ABORTED",
                  2: "MEDIA_ERR_NETWORK",
                  3: "MEDIA_ERR_DECODE",
                  4: "MEDIA_ERR_SRC_NOT_SUPPORTED"
                };
                t.detail = this.el && this.el.error || {code: e.code}, t.detail.reason = i[t.detail.code];
                break;
              case y.MSG.Ended:
                this.pause(), this.playState = v.PlayStates.STOP;
                break;
              case"durationchange":
                0 != this.videoHeight() && (t.type = y.MSG.Resize);
                break;
              case y.MSG.Playing:
                this.playState = e.type.toUpperCase();
                break;
              case y.MSG.Pause:
                this.playState = v.PlayStates.PAUSED;
                break;
              case y.MSG.Seeking:
              case y.MSG.Seeked:
                this.seekState = e.type.toUpperCase()
            }
            "timeupdate" != e.type, this.pub(t)
          }, t.prototype.videoWidth = function () {
            return this.el.videoWidth
          }, t.prototype.videoHeight = function () {
            return this.el.videoHeight
          }, t.prototype.width = function (e) {
            return e ? void (this.el.style.width = e) : this.el.width
          }, t.prototype.height = function (e) {
            return e ? void (this.el.style.height = e) : this.el.height
          }, t.prototype.play = function () {
            this.options.hlsConfig && this.options.hlsConfig.autoStartLoad === !1 && this.hls && this.hls.startLoad(-1), this.el.play()
          }, t.prototype.togglePlay = function () {
            this.paused() ? this.play() : this.pause()
          }, t.prototype.pause = function () {
            this.el.pause()
          }, t.prototype.stop = function () {
            this.el.pause(), this.el.currentTime = 0
          }, t.prototype.paused = function () {
            return this.el.paused
          }, t.prototype.buffered = function () {
            return this.el.buffered.length >= 1 ? this.el.buffered.end(this.el.buffered.length - 1) : 0
          }, t.prototype.currentTime = function (e) {
            return "undefined" == typeof e ? this.el.currentTime : this.el.currentTime = e
          }, t.prototype.duration = function () {
            return this.el.duration || 0
          }, t.prototype.mute = function (e) {
            return "undefined" == typeof e ? this.el.muted : (this.volume(e ? 0 : this.__lastVol), this.el.muted = e)
          }, t.prototype.volume = function (e) {
            return "undefined" == typeof e ? this.el.volume : (e < 0 && (e = 0), e > 1 && (e = 1), 0 != e && (this.__lastVol = e), this.el.muted = 0 == e, this.options.volume = e, this.el.volume = e)
          }, t.prototype.fullscreen = function (e) {
            return f.doFullscreen(this.player, e, this.owner)
          }, t.prototype.load = function (e, t) {
            this.pub({type: y.MSG.Load, src: this, ts: +new Date, detail: {src: e, type: t}});
            var i = 1, o = 0;
            // 由于笔者播放的一定是m3u8,所以i=1,o=0,而!i && !o 一定为false,!i && !o也可去掉
            if (!g.IS_ENABLED_MSE || !i && !o || g.IS_X5TBS && this.player.options.x5_player) {
              this.__type = t, this.el.src = e
            } else {
              var n = this, r = w[this.options.hls] || w["0.7.1"];
              i ? (this.__type = f.VideoType.M3U8, "undefined" == typeof window.Hls ? h.loadScript(f.unifyProtocol(this.player.options.encryptHls ? this.player.options.encryptHls : (f.CDNPath + r)), function () {
                n.__hlsLoaded.call(n, e)
              }) : this.__hlsLoaded(e)) : o && (this.__type = f.VideoType.FLV, "undefined" == typeof window.flvjs ? h.loadScript(f.unifyProtocol(f.CDNPath + "libs/flv.min.1.5.js"), function () {
                n.__flvLoaded.call(n, e)
              }) : this.__flvLoaded(e))
            }
          }, t.prototype.playing = function () {
            return !this.el.paused
          }, t.prototype.type = function () {
            return this.__type
          }, t
        }(u["default"]);
    t["default"] = b
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function r(e, t) {
      return t + "_" + e
    }

    function s(e, t) {
      return t.guid && String(t.guid).indexOf("_") == -1 ? e + "_" + t.guid : t.guid
    }

    t.__esModule = !0;
    var a = i(2), l = o(a), c = i(3), u = o(c), p = i(4), h = o(p), d = i(1), f = o(d), y = function () {
      function e(t, i) {
        n(this, e), this.name = i, this.player = t, this.options = t.options, this.fnCache = {}, this.guid = u.guid()
      }

      return e.prototype.createEl = function (e, t, i) {
        return this.el = l.createEl(e, t, i)
      }, e.prototype.render = function (e) {
        return e && this.el && (this.owner = e, e.appendChild(this.el), this.setup()), this.el
      }, e.prototype.on = function (e, t, i) {
        "string" == typeof e && (i = t, t = e, e = this.el), this.cbs = this.cbs || {};
        var o = s(this.guid, i), n = !o, a = o && !this.fnCache[o];
        return n || a ? (i = u.bind(this, i, this.guid), this.fnCache[i.guid] = i, o = i.guid) : i = this.fnCache[o], l.on(e, t, i), this.cbs[r(o, t)] = {
          guid: o,
          el: e,
          type: t
        }, i
      }, e.prototype.off = function (e, t, i) {
        "string" == typeof e && (i = t, t = e, e = this.el), f.IS_MOBILE && "click" == t && (t = "touchend");
        var o = s(this.guid, i);
        this.fnCache[o] && (i = this.fnCache[o]), l.off(e, t, i), delete this.cbs[r(o, t)]
      }, e.prototype.pub = function (e) {
        var t = this;
        setTimeout(function () {
          h.pub(e, t.player)
        }, 0)
      }, e.prototype.sub = function (e, t, i) {
        h.sub(e, t, i, this.player)
      }, e.prototype.unsub = function (e, t, i) {
        h.unsub(e, t, i, this.player)
      }, e.prototype.handleMsg = function () {
      }, e.prototype.setup = function () {
      }, e.prototype.destroy = function () {
        if (this.handleMsg && this.unsub("*", "*", this.handleMsg), this.cbs) {
          for (var e in this.cbs) {
            if (this.cbs.hasOwnProperty(e)) {
              var t = this.cbs[e];
              l.off(t.el, t.type, this.fnCache[t.guid]), delete this.cbs[e]
            }
          }
          this.fnCache = null, this.cbs = null;
          try {
            this.el.parentNode.removeChild(this.el)
          } catch (i) {
          }
        }
      }, e
    }();
    t["default"] = y
  }, function (e, t) {
    t.__esModule = !0;
    t.PlayStates = {IDLE: "IDLE", PLAYING: "PLAYING", PAUSED: "PAUSED", STOP: "STOP"}, t.SeekStates = {
      IDLE: "IDLE",
      SEEKING: "SEEKING",
      SEEKED: "SEEKED"
    }, t.ControlsStates = {DEFAULT: "default", NONE: "none", SYSTEM: ""}
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    function l(e) {
      return window.document[e] ? window.document[e] : navigator.appName.indexOf("Microsoft Internet") != -1 ? document.getElementById(e) : document.embeds && document.embeds[e] ? document.embeds[e] : void 0
    }

    t.__esModule = !0;
    var c = i(24), u = n(c), p = i(4), h = i(2), d = o(h), f = i(3), y = o(f), A = i(25), v = o(A), m = i(1), g = o(m),
        w = function (e) {
          function t(i) {
            r(this, t);
            var o = s(this, e.call(this, i, "FlashVideo")), n = "vcpFlashCB_" + o.guid;
            return o.__flashCB = n, window[n] || (window[n] = function (e, t) {
              t = t && t[0];
              var i = window[n].fnObj && window[n].fnObj[t.objectID];
              i && i(e, t)
            }, window[n].fnObj = {}), o
          }

          return a(t, e), t.prototype.render = function (e) {
            this.__timebase = +new Date;
            var t = this.player.options,
                i = y.unifyProtocol(t.flashUrl || "//imgcache.qq.com/open/qcloud/video/player/release/QCPlayer.swf"),
                o = "opaque", n = "obj_vcplayer_" + this.player.guid, r = this.__flashCB;
            this.__id = n;
            var s = d.createEl("div", {"class": "vcp-video"});
            s.innerHTML = '\n\t\t<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="" id="' + n + '" width="100%" height="100%">\n            <param name="movie"  value="' + i + '" />\n            <param name="quality" value="autohigh" />\n            <param name="swliveconnect" value="true" />\n            <param name="allowScriptAccess" value="always" />\n            <param name="bgcolor" value="#000" />\n            <param name="allowFullScreen" value="true" />\n            <param name="wmode" value="' + o + '" />\n            <param name="FlashVars" value="cbName=' + r + '" />\n\n            <embed src="' + i + '" width="100%" height="100%" name="' + n + '"\n                   quality="autohigh"\n                   bgcolor="#000"\n                   align="middle" allowFullScreen="true"\n                   allowScriptAccess="always"\n                   type="application/x-shockwave-flash"\n                   swliveconnect="true"\n                   wmode="' + o + '"\n                   FlashVars="cbName=' + r + '"\n                   pluginspage="http://www.macromedia.com/go/getflashplayer" >\n            </embed>\n        </object>\n\t\t', this.container = s, this.owner = e, this.owner.appendChild(s), this.cover = d.createEl("div", {"class": "vcp-pre-flash"}), this.owner.appendChild(this.cover), window[this.__flashCB].fnObj[this.__id] = y.bind(this, this.notify)
          }, t.prototype.setup = function () {
            this.on("error", this.notify), this.playState = v.PlayStates.IDLE, this.seekState = v.SeekStates.IDLE, this.metaDataLoaded = !1
          }, t.prototype.doPolling = function () {
            this.options.live || (clearInterval(this.__timer), this.__timer = setInterval(this.interval.bind(this), 1000))
          }, t.prototype.endPolling = function () {
            clearInterval(this.__timer)
          }, t.prototype.interval = function () {
            var e;
            try {
              e = this.el.getState()
            } catch (t) {
              return void this.endPolling()
            }
            if (this.__m3u8) {
              var i = this.currentTime() + e.bufferLength;
              this.__buffered !== i && (this.__buffered = i, this.pub({
                type: p.MSG.Progress,
                src: this,
                ts: +new Date
              })), this.__buffered >= this.duration() && this.endPolling()
            } else {
              this.__rtmp || (this.__bytesloaded != e.bytesLoaded && (this.__bytesloaded = e.bytesLoaded, this.pub({
                type: p.MSG.Progress,
                src: this,
                ts: +new Date
              })), this.__bytesloaded >= this.__bytesTotal && this.endPolling())
            }
          }, t.prototype.destroy = function () {
            "undefined" != typeof this.el && "undefined" != typeof this.el.destroy && this.el.destroy(), this.endPolling(), delete window[this.__flashCB].fnObj[this.__id], e.prototype.destroy.call(this)
          }, t.prototype.notify = function (e, t) {
            var i = {type: e, ts: +new Date};
            try {
              switch (this.options.debug && this.pub({
                type: i.type,
                src: this,
                ts: i.ts,
                detail: y.extend({debug: !0}, t)
              }), i.type) {
                case"ready":
                  if (this.el = l(this.__id), this.setup(), g.IS_FIREFOX) {
                    var o = this;
                    setTimeout(function () {
                      o.el.setAutoPlay(!!o.options.autoplay), o.__timebase = new Date - t.time, o.load(o.options.src)
                    }, 0)
                  } else {
                    this.el.setAutoPlay(!!this.options.autoplay), this.__timebase = new Date - t.time, this.load(this.options.src)
                  }
                  return;
                case"metaData":
                  i.type = p.MSG.MetaLoaded, this.__videoWidth = t.videoWidth, this.__videoHeight = t.videoHeight, this.__duration = t.duration, this.__bytesTotal = t.bytesTotal, this.__prevPlayState = null, this.__m3u8 = t.type === y.VideoType.M3U8, this.__rtmp = t.type === y.VideoType.RTMP, this.__type = t.type, this.__metaloaded = !0, this.metaDataLoaded = !0, this.doPolling();
                  var o = this;
                  if (!o.cover) {
                    break
                  }
                  setTimeout(function () {
                    o.cover && (o.owner.removeChild(o.cover), o.cover = null)
                  }, 500);
                  break;
                case"playState":
                  this.playState = t.playState, t.playState == v.PlayStates.PLAYING ? (this.__playing = !0, this.__stopped = !1, i.type = p.MSG.Play) : t.playState == v.PlayStates.PAUSED ? (this.__playing = !1, this.__stopped = !1, i.type = p.MSG.Pause) : t.playState == v.PlayStates.STOP ? (this.__playing = !1, this.__stopped = !0, i.type = p.MSG.Ended, this.__prevPlayState = null, this.options.live && (this.metaDataLoaded = !1)) : t.playState == v.PlayStates.IDLE && (this.__playing = !1, this.__stopped = !0, i.type = p.MSG.Ended);
                  break;
                case"seekState":
                  if (this.seekState = t.seekState, !this.__metaloaded) {
                    return
                  }
                  if (t.seekState == v.SeekStates.SEEKING) {
                    i.type = p.MSG.Seeking
                  } else {
                    if (t.seekState != v.SeekStates.SEEKED) {
                      return
                    }
                    this.__m3u8 || this.options.live || t.playState != v.PlayStates.STOP || (this.play(), this.__prevPlayState = t.playState), this.__m3u8 && (i.type = p.MSG.Seeked)
                  }
                  break;
                case"netStatus":
                  this.options.live || ("NetStream.Buffer.Full" == t.code ? (this.__prevPlayState == v.PlayStates.PAUSED || this.__prevPlayState == v.PlayStates.STOP, this.__prevPlayState = null, i.type = p.MSG.Seeked) : "NetStream.Seek.Complete" == t.code), "NetConnection.Connect.Closed" == t.code && (this.options.src.indexOf("rtmp://") > -1 ? this.playState == v.PlayStates.STOP ? (i.type = "error", t = {
                    code: 13,
                    reason: t.code
                  }) : (i.type = "error", t = {
                    code: 1002,
                    reason: t.code
                  }) : this.playState = v.PlayStates.IDLE), "NetStream.Play.Stop" != t.code && "NetConnection.Connect.Success" != t.code && "NetConnection.Connect.Failed" != t.code || (this.playState = v.PlayStates.IDLE);
                  break;
                case"mediaTime":
                  this.__videoWidth = t.videoWidth, this.__videoHeight = t.videoHeight, i.type = p.MSG.TimeUpdate;
                  break;
                case"error":
                  if ("NetStream.Seek.InvalidTime" == t.code) {
                    return this.currentTime(t.details), !1
                  }
                  "NetStream.Play.StreamNotFound" == t.code && this.pub({
                    type: "netStatus",
                    src: this,
                    ts: i.ts,
                    detail: t
                  });
                  var n = isNaN(parseInt(t.code)) ? 1002 : t.code, r = isNaN(parseInt(t.code)) ? t.code : t.msg,
                      s = r.match(/#(\d+)/);
                  s && s[1] && (n = s[1]), t = {code: n, reason: r || ""}, this.metaDataLoaded = !1
              }
              var a = "printLog" == e || "canPlay" == e;
              !a && this.pub({type: i.type, src: this, ts: i.ts, detail: t})
            } catch (c) {
              y.console.error(e + " " + i.type, c)
            }
          }, t.prototype.handleMsg = function (e) {
          }, t.prototype.videoWidth = function () {
            return this.__videoWidth
          }, t.prototype.videoHeight = function () {
            return this.__videoHeight
          }, t.prototype.width = function (e) {
            return "undefined" == typeof e ? this.el && this.el.width : (e = "100%", this.el && (this.el.width = e))
          }, t.prototype.height = function (e) {
            return "undefined" == typeof e ? this.el && this.el.height : (e = "100%", this.el && (this.el.height = e))
          }, t.prototype.play = function (e) {
            this.playState == v.PlayStates.PAUSED || this.playState == v.PlayStates.PLAYING || e ? this.el.playerResume() : this.playState != v.PlayStates.PLAYING && this.el.playerPlay()
          }, t.prototype.togglePlay = function () {
            this.metaDataLoaded ? this.playState == v.PlayStates.PAUSED ? this.el.playerResume() : this.playState == v.PlayStates.PLAYING ? this.el.playerPause() : this.playState == v.PlayStates.STOP ? (this.currentTime(0), this.el.playerResume()) : this.el.playerPlay() : this.player.load()
          }, t.prototype.pause = function () {
            this.el.playerPause()
          }, t.prototype.stop = function () {
            this.el.playerStop()
          }, t.prototype.paused = function () {
            return !this.__playing
          }, t.prototype.buffered = function () {
            var e;
            return this.__m3u8 ? this.__buffered || 0 : (e = (this.__bytesloaded || 0) / (this.__bytesTotal || 1), this.duration() * e)
          }, t.prototype.currentTime = function (e) {
            return "undefined" == typeof e ? this.el.getPosition() : void this.el.playerSeek(e)
          }, t.prototype.duration = function () {
            return this.__duration
          }, t.prototype.mute = function (e) {
            return "undefined" == typeof e ? 0 == this.volume() : void this.volume(e ? 0 : this.__lastVol)
          }, t.prototype.volume = function (e) {
            return "undefined" == typeof e ? this.el && this.el.getState().volume : (this.el && this.el.playerVolume(e), 0 != e && (this.__lastVol = e), this.options.volume = e, void this.pub({
              type: p.MSG.VolumeChange,
              src: this,
              ts: +new Date
            }))
          }, t.prototype.fullscreen = function (e) {
            return y.doFullscreen(this.player, e, this.owner)
          }, t.prototype.load = function (e, t) {
            this.pub({
              type: p.MSG.Load,
              src: this,
              ts: +new Date,
              detail: {src: e, type: t}
            }), this.el && this.el.playerLoad(e)
          }, t.prototype.playing = function () {
            return this.el && this.el.getState && this.el.getState().playState === v.PlayStates.PLAYING
          }, t.prototype.type = function () {
            return this.__type
          }, t.prototype.state = function () {
            return this.playState
          }, t
        }(u["default"]);
    t["default"] = w
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    // i为对应的esmodule,M["default"]表示n[i(34)]个,即分辨率是第34个function,相应的,我们将倍速的放在最后,就是第40个,字幕还在倍速之后,就是第41个
    var l = i(24), c = n(l), u = i(28), p = n(u), h = i(29), d = n(h), f = i(30), y = i(31), A = n(y), v = i(32),
        m = n(v), g = i(33), w = n(g), b = i(34), M = n(b), I = i(4), S = i(2), E = o(S), _ = i(3), T = o(_), D = i(1),
        L = o(D), rate = i(40), Rate = n(rate), subtitle = i(41), Subtitle = n(subtitle), O = function (e) {
          function t(i) {
            return r(this, t), s(this, e.call(this, i, "Panel"))
          }

          return a(t, e), t.prototype.render = function (t) {
            // 加入倍速节点,由于现有的手机浏览器都支持倍速,所以去掉了手机端判断
            // 如果配置了subtitle_srt参数,即传入了srt字幕文件的地址,则加入字幕节点
            return this.createEl("div", {"class": "vcp-controls-panel"}), this.el.appendChild(E.createEl("div", {"class": "vcp-panel-bg"})), this.playToggle = new p["default"](this.player), this.playToggle.render(this.el), this.timelabel = new m["default"](this.player), this.timelabel.render(this.el), this.timeline = new A["default"](this.player), this.timeline.render(this.el), this.options.fullscreenEnabled === !0 && (this.fullscreen = new d["default"](this.player), this.fullscreen.render(this.el)), L.IS_MOBILE || (this.volume = new w["default"](this.player), this.volume.render(this.el)), this.options.videoSource && this.options.videoSource.definitions.length > 1 && (this.claritySwitcher = new M["default"](this.player), this.claritySwitcher.render(this.el)) || (this.rateSwitcher = new Rate["default"](this.player), this.rateSwitcher.render(this.el))
            && (this.options.subtitle_srt ? (this.subtitleSwitcher = new Subtitle["default"](this.player), this.subtitleSwitcher.render(this.el)) : "")
                , e.prototype.render.call(this, t)
          }, t.prototype.setup = function () {
            var e = T.bind(this, this.handleMsg);
            this.sub(f.MSG.Changing, this.volume, e), this.sub(f.MSG.Changed, this.timeline.progress, e), this.sub(I.MSG.TimeUpdate, this.player.video, e), this.sub(I.MSG.Progress, this.player.video, e), this.sub(I.MSG.MetaLoaded, this.player.video, e), this.sub(I.MSG.Pause, this.player.video, e), this.sub(I.MSG.Play, this.player.video, e), this.sub(I.MSG.Ended, this.player.video, e)
          }, t.prototype.handleMsg = function (e) {
            switch (e.type) {
              case I.MSG.MetaLoaded:
                this.timeline.percent(this.player.percent()), this.timeline.buffered(this.player.buffered()), this.player.volume("undefined" == typeof this.options.volume ? 0.5 : this.options.volume), !this.options.autoplay && this.show();
                break;
              case I.MSG.TimeUpdate:
                this.timeline.scrubbing || this.timeline.percent(this.player.percent());
                break;
              case I.MSG.Pause:
                this.show();
                break;
              case I.MSG.Play:
                this.hide();
                break;
              case I.MSG.Progress:
                this.timeline.buffered(this.player.buffered());
                break;
              case f.MSG.Changed:
                e.src === this.timeline.progress && this.player.percent(this.timeline.percent());
                break;
              case I.MSG.Ended:
                this.show()
            }
          }, t.prototype.toggle = function () {
            E.hasClass(this.el, "show") ? this.hide() : this.show()
          }, t.prototype.show = function () {
            E.hasClass(this.el, "hide") && (E.removeClass(this.el, "hide"), E.addClass(this.el, "show"))
          }, t.prototype.hide = function () {
            E.removeClass(this.el, "show"), E.addClass(this.el, "hide")
          }, t
        }(c["default"]);
    t["default"] = O
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = i(24), c = n(l), u = i(2), p = (o(u), i(4)), h = (o(p), i(3)), d = (o(h), i(25)), f = (o(d), function (e) {
      function t(i) {
        return r(this, t), s(this, e.call(this, i, "PlayToggle"))
      }

      return a(t, e), t.prototype.render = function (t) {
        return this.createEl("div", {"class": "vcp-playtoggle"}), e.prototype.render.call(this, t)
      }, t.prototype.setup = function () {
        this.on("click", this.onClick)
      }, t.prototype.onClick = function () {
        this.player.togglePlay()
      }, t.prototype.handleMsg = function (e) {
        console.log("@" + this.name, e)
      }, t
    }(c["default"]));
    t["default"] = f
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = i(24), c = n(l), u = i(2), p = (o(u), i(4)), h = (o(p), i(3)), d = o(h), f = function (e) {
      function t(i) {
        return r(this, t), s(this, e.call(this, i, "FullscreenToggle"))
      }

      return a(t, e), t.prototype.render = function (t) {
        return this.createEl("div", {"class": "vcp-fullscreen-toggle"}), window.fsApi = d.FullscreenApi, e.prototype.render.call(this, t)
      }, t.prototype.setup = function () {
        this.on("click", this.onClick)
      }, t.prototype.onClick = function () {
        this.player.fullscreen(!this.player.fullscreen())
      }, t.prototype.handleMsg = function (e) {
        console.log(t.name, e)
      }, t
    }(c["default"]);
    t["default"] = f
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0, t.MSG = void 0;
    var l = i(24), c = n(l), u = i(2), p = o(u), h = i(4), d = (o(h), i(3)),
        f = (o(d), t.MSG = {Changing: "sliderchanging", Changed: "sliderchanged"}), y = function (e) {
          function t(i, o) {
            r(this, t);
            var n = s(this, e.call(this, i, "Slider"));
            return n.vertical = o || !1, n
          }

          return a(t, e), t.prototype.render = function (t, i) {
            var o = this.vertical ? "vcp-slider-vertical" : "vcp-slider";
            return this.createEl("div", {"class": o}), this.track = p.createEl("div", {"class": "vcp-slider-track"}), this.thumb = p.createEl("div", {"class": "vcp-slider-thumb"}), this.el.appendChild(this.track), this.el.appendChild(this.thumb), this.enabled = "undefined" == typeof i || i, e.prototype.render.call(this, t)
          }, t.prototype.setup = function () {
            this.enabled && (this.ownerDoc = document.body.ownerDocument, this.on("mousedown", this.mousedown), this.on("touchstart", this.mousedown))
          }, t.prototype.handleMsg = function (e) {
          }, t.prototype.mousedown = function (e) {
            return e.preventDefault && e.preventDefault(), this.pos = p.findElPosition(this.el), this.on(this.ownerDoc, "mouseup", this.mouseup), this.on(this.ownerDoc, "mousemove", this.mousemove), this.on(this.ownerDoc, "touchend", this.mouseup), this.on(this.ownerDoc, "touchmove", this.mousemove), this.mousemove(e), !1
          }, t.prototype.mouseup = function (e) {
            e.target || e.srcElement;
            this.off(this.ownerDoc, "mouseup", this.mouseup), this.off(this.ownerDoc, "mousemove", this.mousemove), this.off(this.ownerDoc, "touchend", this.mouseup), this.off(this.ownerDoc, "touchmove", this.mousemove), this.pub({
              type: f.Changed,
              src: this,
              "private": !0
            })
          }, t.prototype.mousemove = function (e) {
            var t = p.getPointerPosition(this.el, e, this.pos);
            this.vertical ? (this.__percent = 1 - t.y, this.thumb.style.top = 100 * this.__percent + "%") : (this.__percent = t.x, this.thumb.style.left = 100 * this.__percent + "%"), this.__percent = Number(this.__percent.toFixed(3)), this.pub({
              type: f.Changing,
              src: this,
              "private": !0
            })
          }, t.prototype.percent = function (e) {
            return e || 0 == e ? (this.__percent = e, void (this.vertical ? this.thumb.style.top = 100 * this.__percent + "%" : this.thumb.style.left = 100 * this.__percent + "%")) : this.__percent
          }, t
        }(c["default"]);
    t["default"] = y
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = i(30), c = n(l), u = i(24), p = n(u), h = i(2), d = (o(h), i(3)), f = o(d), y = function (e) {
      function t(i) {
        return r(this, t), s(this, e.call(this, i, "Timeline"))
      }

      return a(t, e), t.prototype.render = function (t) {
        return this.enabled = !this.options.live, this.createEl("div", {"class": "vcp-timeline"}), this.progress = new c["default"](this.player, (!1)), this.progress.render(this.el, this.enabled), this.track = this.progress.track, this.enabled || (this.el.style.display = "none"), e.prototype.render.call(this, t)
      }, t.prototype.setup = function () {
        this.enabled && (this.sub(l.MSG.Changing, this.progress, f.bind(this, this.handleMsg)), this.sub(l.MSG.Changed, this.progress, f.bind(this, this.handleMsg)))
      }, t.prototype.handleMsg = function (e) {
        e.type === l.MSG.Changing ? (this.scrubbing = !0, this.syncLabel(this.percent())) : e.type === l.MSG.Changed && (this.scrubbing = !1)
      }, t.prototype.syncLabel = function (e) {
        var t = this.player.duration();
        e = Math.min(e, 1);
        var i = "";
        t && (i = f.convertTime(e * t) + " / " + f.convertTime(t)), this.pub({
          type: "timelabel",
          src: "timeline",
          label: i,
          "private": !0
        })
      }, t.prototype.buffered = function (e) {
        this.enabled && (e = Math.min(e, 1), this.__buffered = e, this.track.style.width = 100 * e + "%")
      }, t.prototype.percent = function (e) {
        if (this.enabled) {
          return "undefined" == typeof e ? this.progress.percent() || 0 : (e = Math.min(e, 1), this.syncLabel(e), this.__buffered < e && this.buffered(this.player.buffered()), this.progress.percent(e))
        }
      }, t
    }(p["default"]);
    t["default"] = y
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = i(30), c = (n(l), i(24)), u = n(c), p = i(2), h = (o(p), i(3)), d = o(h), f = function (e) {
      function t(i) {
        return r(this, t), s(this, e.call(this, i, "Timelabel"))
      }

      return a(t, e), t.prototype.render = function (t) {
        return this.createEl("span", {"class": "vcp-timelabel"}), e.prototype.render.call(this, t)
      }, t.prototype.setup = function () {
        this.sub("timelabel", "timeline", d.bind(this, this.handleMsg))
      }, t.prototype.handleMsg = function (e) {
        this.el.innerHTML = e.label
      }, t
    }(u["default"]);
    t["default"] = f
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = i(30), c = n(l), u = i(24), p = n(u), h = i(2), d = o(h), f = i(3), y = o(f), A = i(4), v = function (e) {
      function t(i) {
        return r(this, t), s(this, e.call(this, i, "Volume"))
      }

      return a(t, e), t.prototype.render = function (t) {
        return this.createEl("div", {"class": "vcp-volume"}), this.bg = d.createEl("div", {"class": "vcp-volume-bg"}), this.el.appendChild(this.bg), this.volume = new c["default"](this.player, (!0)), this.volume.render(this.el), this.track = this.volume.track, this.icon = d.createEl("span", {"class": "vcp-volume-icon"}), this.el.appendChild(this.icon), e.prototype.render.call(this, t)
      }, t.prototype.setup = function () {
        this.sub(l.MSG.Changing, this.volume, y.bind(this, this.handleMsg)), this.sub(l.MSG.Changed, this.volume, y.bind(this, this.handleMsg)), this.sub(A.MSG.VolumeChange, this.player.video, y.bind(this, this.handleMsg)), this.on(this.icon, "click", this.toggleMute)
      }, t.prototype.handleMsg = function (e) {
        switch (e.type) {
          case l.MSG.Changing:
            this.syncTrack(this.percent());
            break;
          case l.MSG.Changed:
            this.percent(this.percent());
            break;
          case A.MSG.VolumeChange:
            var t = this.player.volume();
            this.syncTrack(t), 0 == t ? this.syncMute(!0) : t > 0 && this.__muted && this.syncMute(!1)
        }
      }, t.prototype.toggleMute = function (e) {
        var t = !this.player.mute();
        this.player.mute(t)
      }, t.prototype.syncMute = function (e) {
        e ? d.addClass(this.el, "vcp-volume-muted") : d.removeClass(this.el, "vcp-volume-muted"), this.__muted = e
      }, t.prototype.syncTrack = function (e) {
        this.track.style.height = 100 * e + "%", this.volume.percent(1 - e)
      }, t.prototype.percent = function (e) {
        return "undefined" == typeof e ? 1 - this.volume.percent() || 0 : (this.player.volume(e), e)
      }, t
    }(p["default"]);
    t["default"] = v
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = i(24), c = n(l), u = i(2), p = o(u), h = i(3), d = o(h), f = {od: "超清", hd: "高清", sd: "标清"},
        y = function (e) {
          function t(i) {
            r(this, t);
            var o = s(this, e.call(this, i, "ClaritySwitcher"));
            return f = d.extend({}, i.options.clarityLabel, f), i.claritySwitcher = o, o
          }

          return a(t, e), t.prototype.render = function (t) {
            this.show = !1, this.createEl("div", {"class": "vcp-clarityswitcher"}), this.current = p.createEl("a", {"class": "vcp-vertical-switcher-current"}), this.container = p.createEl("div", {"class": "vcp-vertical-switcher-container"}), this.items = [], this.currentItem = "";
            var i = this.options.videoSource;
            this.current.innerHTML = f[i.curDef], this.el.appendChild(this.current);
            for (var o = 0; o < i.definitions.length; o++) {
              var n = p.createEl("a", {"class": "vcp-vertical-switcher-item"});
              n.innerHTML = f[i.definitions[o]], i.definitions[o] == i.curDef && (p.addClass(n, "current"), this.currentItem = n), n.setAttribute("data-def", i.definitions[o]), this.items.push(n), this.container.appendChild(n)
            }
            return this.el.appendChild(this.container), e.prototype.render.call(this, t)
          }, t.prototype.setup = function () {
            this.on("click", this.onClick), this.on("mouseenter", this.onMouseEnter), this.on("mouseleave", this.onMouseLeave)
          }, t.prototype.onClick = function (e) {
            var t = e.target.getAttribute("data-def");
            t ? (this.current.innerHTML = f[t], p.removeClass(this.currentItem, "current"), p.addClass(e.target, "current"), this.currentItem = e.target, this.player._switchClarity(t)) : !this.show
          }, t.prototype.onMouseLeave = function () {
            this.container.style.display = "none", this.show = !1
          }, t.prototype.onMouseEnter = function () {
            this.container.style.display = "block", this.show = !0
          }, t.prototype.setClarity = function (e) {
            e && (this.current.innerHTML = f[e], p.removeClass(document.querySelector(".vcp-vertical-switcher-item.current"), "current"), p.addClass(document.querySelector('.vcp-vertical-switcher-item[data-def="' + e + '"]'), "current"), this.currentItem = document.querySelector('.vcp-vertical-switcher-item[data-def="' + e + '"]'), this.player._switchClarity(e))
          }, t
        }(c["default"]);
    t["default"] = y
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = i(24), c = n(l), u = i(1), p = o(u), h = function (e) {
      function t(i) {
        return r(this, t), s(this, e.call(this, i, "BigPlay"))
      }

      return a(t, e), t.prototype.render = function (t) {
        return this.createEl("div", {"class": "vcp-bigplay"}), e.prototype.render.call(this, t)
      }, t.prototype.setup = function () {
        this.on("click", this.onClick)
      }, t.prototype.onClick = function () {
        var e = this.player.video;
        return p.IS_MOBILE && !e.paused() ? this.player.panel && this.player.panel.toggle() : void this.player.togglePlay()
      }, t.prototype.handleMsg = function (e) {
        console.log("@" + this.name, e)
      }, t
    }(c["default"]);
    t["default"] = h
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
      return typeof e
    } : function (e) {
      return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
    }, c = i(24), u = n(c), p = i(2), h = o(p), d = i(3), f = o(d), y = i(1), A = o(y), v = i(4), m = function (e) {
      function t(i) {
        r(this, t);
        var o = s(this, e.call(this, i, "Poster"));
        return o.options.poster && "object" == l(o.options.poster) ? o.poster = o.options.poster : "string" == typeof o.options.poster ? o.poster = {src: o.options.poster} : o.poster = {}, o
      }

      return a(t, e), t.prototype.render = function (t) {
        this.createEl("div", {"class": "vcp-poster"}), this.hide();
        var i = this.poster;
        if (i) {
          this.pic = h.createEl("img", {"class": "vcp-poster-pic"});
          var o = this.poster.style;
          switch (o) {
            case"stretch":
              h.addClass(this.pic, "stretch");
              break;
            case"cover":
              h.addClass(this.pic, "cover");
              break;
            default:
              h.addClass(this.pic, "default")
          }
          this.el.appendChild(this.pic)
        }
        return e.prototype.render.call(this, t)
      }, t.prototype.setup = function () {
        this.on("click", this.onClick), this.sub(v.MSG.Load, this.player.video, f.bind(this, this.handleMsg)), this.sub(v.MSG.MetaLoaded, this.player.video, f.bind(this, this.handleMsg)), this.sub(v.MSG.Play, this.player.video, f.bind(this, this.handleMsg)), this.sub(v.MSG.Pause, this.player.video, f.bind(this, this.handleMsg)), this.sub(v.MSG.Ended, this.player.video, f.bind(this, this.handleMsg)), this.sub(v.MSG.Error, this.player.video, f.bind(this, this.handleMsg))
      }, t.prototype.onClick = function () {
        this.pub({
          type: "click",
          src: this
        }), (A.IS_SAFARI && parseInt(A.SAFARI_VERSION) > 10 || A.IOS_VERSION > 10) && "system" == this.player.options.controls && this.player.togglePlay()
      }, t.prototype.handleMsg = function (e) {
        switch (e.type) {
          case v.MSG.Load:
            this.__loaded = !1, this.setPoster(this.poster.start);
            break;
          case v.MSG.MetaLoaded:
            if (this.__loaded = !0, !this.player.playing()) {
              break
            }
            this.hide();
          case v.MSG.Play:
            if (!this.__loaded) {
              break
            }
            this.hide();
            break;
          case v.MSG.Pause:
            if (!this.__loaded) {
              break
            }
            this.options.pausePosterEnabled === !0 && this.setPoster(this.poster.pause);
            break;
          case v.MSG.Ended:
            if (!this.__loaded) {
              break
            }
            break;
          case v.MSG.Error:
            if (!this.__loaded) {
              break
            }
        }
      }, t.prototype.setPoster = function (e) {
        if (e = e || this.poster.src) {
          this.__preload && (this.__preload.onload = null), this.__preload = new Image;
          var t = this.__preload;
          this.hide();
          var i = this;
          t.onload = function () {
            if (i.pic.src = t.src, i.show(), !f.supportStyle("transform")) {
              var e = "stretch" == i.poster.style;
              if (e) {
                return
              }
              var o = "cover" == i.poster.style ? i.options.width / (t.width / t.height) : t.height,
                  n = "-" + i.options.width / 2 + "px", r = "-" + o / 2 + "px";
              i.pic.style.cssText = "left: 50%; top: 50%; margin-left: " + n + "; margin-top: " + r + ";"
            }
          }, t.src = e
        }
      }, t.prototype.toggle = function (e) {
        clearTimeout(this.__tid);
        var t = this;
        this.__tid = setTimeout(function () {
          t.el.style.display = e
        }, 100)
      }, t.prototype.hide = function () {
        this.__preload && (this.__preload.onload = null), this.toggle("none")
      }, t.prototype.show = function () {
        this.toggle("block")
      }, t
    }(u["default"]);
    t["default"] = m
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = i(24), c = n(l), u = i(2), p = (o(u), i(4)), h = (o(p), i(3)), d = (o(h), function (e) {
      function t(i) {
        r(this, t);
        var o = s(this, e.call(this, i, "Loading"));
        return o.timeSeed = null, o
      }

      return a(t, e), t.prototype.render = function (t) {
        return this.createEl("div", {"class": "vcp-loading"}), e.prototype.render.call(this, t)
      }, t.prototype.setup = function () {
      }, t.prototype.handleMsg = function (e) {
      }, t.prototype.show = function () {
        if (this.options.showLoading !== !1) {
          var e = 500, t = this;
          this.timeSeed = setTimeout(function () {
            t.el.style.display = "block"
          }, e)
        }
      }, t.prototype.hide = function () {
        this.timeSeed && (clearTimeout(this.timeSeed), this.timeSeed = null), this.el.style.display = "none"
      }, t
    }(c["default"]));
    t["default"] = d
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    var l = i(24), c = n(l), u = i(2), p = (o(u), i(4)), h = (o(p), i(3)), d = o(h), f = {
      EnvError: "当前系统环境不支持播放该视频格式",
      EnvFlashError: "当前系统环境不支持播放该视频格式",
      VideoSourceError: "获取视频失败，请检查播放链接是否有效",
      NetworkError: "网络错误，请检查网络配置或者播放链接是否正确",
      VideoDecodeError: "视频解码错误",
      ArgumentError: "使用参数有误，请检查播放器调用代码",
      UrlEmpty: "请填写视频播放地址",
      FileProtocol: "请勿在file协议下使用播放器，可能会导致视频无法播放",
      LiveFinish: "直播已结束,请稍后再来",
      CrossDomainError: "无法加载视频文件，跨域访问被拒绝",
      Ie9IframeFullscreenError: "在IE9中用iframe引用的实例无法支持全屏"
    }, y = {
      FileProtocol: [10],
      ArgumentError: [11],
      UrlEmpty: [12],
      LiveFinish: [13],
      VideoSourceError: [1002, 2032],
      EnvError: [4, 5],
      NetworkError: [1001, 1, 2],
      VideoDecodeError: [3],
      CrossDomainError: [2048],
      Ie9IframeFullscreenError: [10001]
    }, A = function (e) {
      function t(i) {
        r(this, t);
        var o = s(this, e.call(this, i, "ErrorTips"));
        o.customTips = d.extend({}, f, o.options.wording);
        for (var n in y) {
          for (var a = 0; a < y[n].length; a++) {
            var l = y[n][a];
            o.customTips[l] = o.customTips[l] || o.customTips[n]
          }
        }
        return o
      }

      return a(t, e), t.prototype.render = function (t) {
        return this.createEl("div", {"class": "vcp-error-tips"}), e.prototype.render.call(this, t)
      }, t.prototype.setup = function () {
      }, t.prototype.handleMsg = function (e) {
      }, t.prototype.show = function (e) {
        this.el.style.display = "block";
        var t = void 0;
        if ("string" == typeof e) {
          t = e
        } else {
          var i = this.customTips[e.code] || e.reason;
          t = "[" + e.code + "]" + i
        }
        this.el.innerHTML = d.escapeHTML(t)
      }, t.prototype.hide = function () {
        this.el.style.display = "none"
      }, t.prototype.clear = function () {
        this.el.innerHTML = "", this.hide()
      }, t
    }(c["default"]);
    t["default"] = A
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    t.__esModule = !0;
    var r = i(1), s = o(r), a = i(2), l = o(a), c = i(3), u = function () {
      function e(t, i) {
        n(this, e), this.player = t, this.options = i, this.load()
      }

      return e.prototype.load = function () {
        l.loadScript((0, c.unifyProtocol)("//pingjs.qq.com/h5/stats.js?v2.0.4"), null, {
          name: "MTAH5",
          sid: "500376528",
          cid: "500383222"
        }, !0)
      }, e.prototype.report = function () {
        window.MtaH5 && (0 == this.player.duration() || this.player.duration() == 1 / 0 ? MtaH5.clickStat("live", {live: "true"}) : MtaH5.clickStat("vod", {vod: "true"}))
      }, e.prototype.reportFlash = function () {
        if (window.MtaH5) {
          var e = this.options.videoSource, t = (0, c.getFormat)(e),
              i = {browser: s.BROWSER_TYPE, mse: !!s.IS_ENABLED_MSE, format: t};
          MtaH5.clickStat("flash", i)
        }
      }, e
    }();
    t["default"] = u
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    // 删除了原有的f这个数组
    var l = i(24), c = n(l), u = i(2), p = o(u), h = i(3), d = o(h),
        y = function (e) {
          function t(i) {
            return r(this, t), s(this, e.call(this, i, "ClaritySwitcher"))
          }

          return a(t, e), t.prototype.render = function (t) {
            this.show = !1, this.createEl("div", {"class": "vcp-clarityswitcher"}), this.current = p.createEl("a", {"class": "vcp-vertical-switcher-current"}), this.container = p.createEl("div", {"class": "vcp-vertical-switcher-container"}), this.items = [], this.currentItem = "";
            // curRateIndex为配置中的当前倍速的索引 rates为倍速数组
            var i = this.options.curRate, f = this.options.rates;
            this.current.innerHTML = i, this.el.appendChild(this.current);
            for (var o = 0; o < f.length; o++) {
              var n = p.createEl("a", {"class": "vcp-vertical-switcher-item"});
              n.innerHTML = f[o], f[o] == i && (p.addClass(n, "current"), this.currentItem = n), n.setAttribute("data-def", o), this.items.push(n), this.container.appendChild(n)
            }
            return this.el.appendChild(this.container), e.prototype.render.call(this, t)
          }, t.prototype.setup = function () {
            // 在初始化时加入修改倍速函数_switchRate,切换到当前倍速
            this.player._switchRate(this.options.curRate), this.on("click", this.onClick), this.on("mouseenter", this.onMouseEnter), this.on("mouseleave", this.onMouseLeave)
          }, t.prototype.onClick = function (e) {
            var t = e.target.getAttribute("data-def"), f = this.options.rates;
            // 修改点击函数,将_switchClarity改为自定义的_switchRate
            t ? (this.current.innerHTML = f[t], p.removeClass(this.currentItem, "current"), p.addClass(e.target, "current"), this.currentItem = e.target, this.player._switchRate(f[t])) : !this.show
          }, t.prototype.onMouseLeave = function () {
            this.container.style.display = "none", this.show = !1
          }, t.prototype.onMouseEnter = function () {
            this.container.style.display = "block", this.show = !0
          }
              // 去除了无效的setClarity函数,也可不去,对功能无影响,只是代码洁癖
              , t
        }(c["default"]);
    t["default"] = y
  }, function (e, t, i) {
    function o(e) {
      if (e && e.__esModule) {
        return e
      }
      var t = {};
      if (null != e) {
        for (var i in e) {
          Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i])
        }
      }
      return t["default"] = e, t
    }

    function n(e) {
      return e && e.__esModule ? e : {"default": e}
    }

    function r(e, t) {
      if (!(e instanceof t)) {
        throw new TypeError("Cannot call a class as a function")
      }
    }

    function s(e, t) {
      if (!e) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
      }
      return !t || "object" != typeof t && "function" != typeof t ? e : t
    }

    function a(e, t) {
      if ("function" != typeof t && null !== t) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof t)
      }
      e.prototype = Object.create(t && t.prototype, {
        constructor: {
          value: e,
          enumerable: !1,
          writable: !0,
          configurable: !0
        }
      }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t)
    }

    t.__esModule = !0;
    // 修改f数组,为悬浮在字幕按钮上展示的列表
    var l = i(24), c = n(l), u = i(2), p = o(u), h = i(3), d = o(h), f = ['on', 'off'],
        y = function (e) {
          function t(i) {
            return r(this, t), s(this, e.call(this, i, "ClaritySwitcher"))
          }

          return a(t, e), t.prototype.render = function (t) {
            this.show = !1, this.createEl("div", {"class": "vcp-clarityswitcher"}), this.current = p.createEl("a", {"class": "vcp-vertical-switcher-current"}), this.container = p.createEl("div", {"class": "vcp-vertical-switcher-container"}), this.items = [], this.currentItem = "";
            // subtitle_display 表示是否开启字幕
            var i = this.options.subtitle_display ? 0 : 1;
            // 在底部栏直接展示字幕二字
            this.current.innerHTML = "字幕", this.el.appendChild(this.current);
            for (var o = 0; o < f.length; o++) {
              var n = p.createEl("a", {"class": "vcp-vertical-switcher-item"});
              n.innerHTML = f[o], f[o] === f[i] && (p.addClass(n, "current"), this.currentItem = n), n.setAttribute("data-def", o), this.items.push(n), this.container.appendChild(n)
            }
            return this.el.appendChild(this.container), e.prototype.render.call(this, t)
          }, t.prototype.setup = function () {
            this.on("click", this.onClick), this.on("mouseenter", this.onMouseEnter), this.on("mouseleave", this.onMouseLeave)
          }, t.prototype.onClick = function (e) {
            var t = e.target.getAttribute("data-def");
            // 去掉this.current.innerHTML,即不修改在底部栏展示的字幕按钮信息,加入判断t==0 即f[t]='on'时,将subtitle_display置为true,即展示字幕
            t ? (p.removeClass(this.currentItem, "current"), p.addClass(e.target, "current"), this.currentItem = e.target, this.options.subtitle_display = t == 0) : !this.show
          }, t.prototype.onMouseLeave = function () {
            this.container.style.display = "none", this.show = !1
          }, t.prototype.onMouseEnter = function () {
            this.container.style.display = "block", this.show = !0
          }, t // 去除了无效的setClarity函数,也可不去,对功能无影响,只是代码洁癖
        }(c["default"]);
    t["default"] = y
  }])
});
